Class BagitSuiteComplanceTest

java.lang.Object
nl.knaw.dans.bagit.TempFolderTest
nl.knaw.dans.bagit.BagitSuiteComplanceTest

public class BagitSuiteComplanceTest extends TempFolderTest
This class assumes that the compliance test suite repo has been cloned and is available locally
  • Field Details

    • logger

      private static final org.slf4j.Logger logger
    • complianceRepoRootDir

      private static final Path complianceRepoRootDir
    • visitor

      private static final BagTestCaseVistor visitor
    • reader

      private static final BagReader reader
    • verifier

      private static final BagVerifier verifier
  • Constructor Details

    • BagitSuiteComplanceTest

      public BagitSuiteComplanceTest()
  • Method Details

    • setupOnce

      @BeforeAll public static void setupOnce() throws IOException
      Throws:
      IOException
    • testValidBags

      @Test public void testValidBags() throws Exception
      Throws:
      Exception
    • testInvalidBags

      @Test public void testInvalidBags()
    • testInvalidOperatingSystemSpecificBags

      @Test public void testInvalidOperatingSystemSpecificBags()
    • testWarnings

      @Test public void testWarnings() throws Exception
      Throws:
      Exception
    • testReadWriteProducesSameBag

      @Test public void testReadWriteProducesSameBag() throws Exception
      Throws:
      Exception
    • testTagFileContents

      private void testTagFileContents(Bag originalBag, Path newBagDir) throws IOException
      Throws:
      IOException
    • compareFileContents

      private final boolean compareFileContents(Path file1, Path file2, Charset encoding) throws IOException
      Throws:
      IOException
    • testBagsStructureAreEqual

      private void testBagsStructureAreEqual(Path originalBag, Path newBag) throws IOException
      Throws:
      IOException