Package nl.knaw.dans.bagit
Class BagitSuiteComplanceTest
java.lang.Object
nl.knaw.dans.bagit.TempFolderTest
nl.knaw.dans.bagit.BagitSuiteComplanceTest
This class assumes that the compliance test suite repo has been cloned and is available locally
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Pathprivate static final org.slf4j.Loggerprivate static final BagReaderprivate static final BagVerifierprivate static final BagTestCaseVistorFields inherited from class nl.knaw.dans.bagit.TempFolderTest
folder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate final booleancompareFileContents(Path file1, Path file2, Charset encoding) static voidprivate voidtestBagsStructureAreEqual(Path originalBag, Path newBag) voidvoidvoidprivate voidtestTagFileContents(Bag originalBag, Path newBagDir) voidvoidMethods inherited from class nl.knaw.dans.bagit.TempFolderTest
copyBagToTempFolder, createDirectory, createFile, delete, setupTempFolder, teardownTempFolder
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
complianceRepoRootDir
-
visitor
-
reader
-
verifier
-
-
Constructor Details
-
BagitSuiteComplanceTest
public BagitSuiteComplanceTest()
-
-
Method Details
-
setupOnce
- Throws:
IOException
-
testValidBags
- Throws:
Exception
-
testInvalidBags
@Test public void testInvalidBags() -
testInvalidOperatingSystemSpecificBags
@Test public void testInvalidOperatingSystemSpecificBags() -
testWarnings
- Throws:
Exception
-
testReadWriteProducesSameBag
- Throws:
Exception
-
testTagFileContents
- Throws:
IOException
-
compareFileContents
private final boolean compareFileContents(Path file1, Path file2, Charset encoding) throws IOException - Throws:
IOException
-
testBagsStructureAreEqual
- Throws:
IOException
-