Package nl.knaw.dans.bagit.reader
Class ManifestReaderTest
java.lang.Object
nl.knaw.dans.bagit.TempFolderTest
nl.knaw.dans.bagit.PrivateConstructorTest
nl.knaw.dans.bagit.reader.ManifestReaderTest
-
Field Summary
Fields inherited from class nl.knaw.dans.bagit.TempFolderTest
folder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
Methods inherited from class nl.knaw.dans.bagit.PrivateConstructorTest
assertUtilityClassWellDefined
Methods inherited from class nl.knaw.dans.bagit.TempFolderTest
copyBagToTempFolder, createDirectory, createFile, delete, setupTempFolder, teardownTempFolder
-
Constructor Details
-
ManifestReaderTest
public ManifestReaderTest()
-
-
Method Details
-
testClassIsWellDefined
@Test public void testClassIsWellDefined() throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException -
testReadAllManifests
- Throws:
Exception
-
testReadUpDirectoryMaliciousManifestThrowsException
- Throws:
Exception
-
testReadTildeMaliciousManifestThrowsException
- Throws:
Exception
-
testReadFileUrlMaliciousManifestThrowsException
@Test @EnabledOnOs(WINDOWS) public void testReadFileUrlMaliciousManifestThrowsException() throws Exception- Throws:
Exception
-
testReadWindowsSpecialDirMaliciousManifestThrowsException
- Throws:
Exception
-