Class ResourceTestHelper

java.lang.Object
net.shibboleth.shared.testing.ResourceTestHelper

public final class ResourceTestHelper extends Object
Compare two resources for equality.

NOTE: If this changes, change the "additional" copy in shib-spring.

  • Constructor Details

    • ResourceTestHelper

      private ResourceTestHelper()
      Hidden constructor.
  • Method Details

    • compare

      public static boolean compare(@Nonnull Resource first, @Nonnull Resource second) throws IOException
      Compare to see whether the content of two resources are the same.
      Parameters:
      first - Resource to compare
      second - Resource to compare
      Returns:
      whether They are equal
      Throws:
      IOException - if a read fails