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
Modifier and TypeFieldDescriptionprivate static final Path
private static final org.slf4j.Logger
private static final BagReader
private static final BagVerifier
private static final BagTestCaseVistor
Fields inherited from class nl.knaw.dans.bagit.TempFolderTest
folder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate final boolean
compareFileContents
(Path file1, Path file2, Charset encoding) static void
private void
testBagsStructureAreEqual
(Path originalBag, Path newBag) void
void
void
private void
testTagFileContents
(Bag originalBag, Path newBagDir) void
void
Methods 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
-