Package nl.knaw.dans.bagit.reader
Class FetchReaderTest
java.lang.Object
nl.knaw.dans.bagit.TempFolderTest
nl.knaw.dans.bagit.PrivateConstructorTest
nl.knaw.dans.bagit.reader.FetchReaderTest
-
Field Summary
Fields inherited from class nl.knaw.dans.bagit.TempFolderTest
folder
-
Constructor Summary
-
Method Summary
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
-
Field Details
-
urls
-
-
Constructor Details
-
FetchReaderTest
public FetchReaderTest()
-
-
Method Details
-
setup
- Throws:
MalformedURLException
-
testClassIsWellDefined
@Test public void testClassIsWellDefined() throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException -
testReadFetchWithNoSizeSpecified
- Throws:
Exception
-
testReadFetchWithSizeSpecified
- Throws:
Exception
-
testReadBlankLinesThrowsException
- Throws:
Exception
-
testReadWindowsSpecialDirMaliciousFetchThrowsException
- Throws:
Exception
-
testReadUpADirMaliciousFetchThrowsException
- Throws:
Exception
-
testReadTildeFetchThrowsException
- Throws:
Exception
-
testReadFileUrlMaliciousFetchThrowsException
@Test @EnabledOnOs(WINDOWS) public void testReadFileUrlMaliciousFetchThrowsException() throws Exception- Throws:
Exception
-