Package nl.knaw.dans.bagit.hash
Class HasherUrlTest
java.lang.Object
nl.knaw.dans.bagit.hash.HasherUrlTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AtomicIntegerprivate HttpServerprivate static final Stringprivate static final byte[] -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
server
-
TEST_DATA
- See Also:
-
TEST_DATA_BYTES
private static final byte[] TEST_DATA_BYTES -
requestCount
-
-
Constructor Details
-
HasherUrlTest
public HasherUrlTest()
-
-
Method Details
-
setup
- Throws:
IOException
-
teardown
@AfterEach public void teardown() -
testHashWithRangeRequests
- Throws:
IOExceptionNoSuchAlgorithmException
-
testHashWithRetries
- Throws:
IOExceptionNoSuchAlgorithmException
-
testHashWithoutRangeSupport
- Throws:
IOExceptionNoSuchAlgorithmException
-
testHashThrowsProtocolExceptionWhenLaterChunkReturnsOk
@Test public void testHashThrowsProtocolExceptionWhenLaterChunkReturnsOk() throws IOException, NoSuchAlgorithmException- Throws:
IOExceptionNoSuchAlgorithmException
-
testHashWithFailedFirstRangeRequest
@Test public void testHashWithFailedFirstRangeRequest() throws IOException, NoSuchAlgorithmException- Throws:
IOExceptionNoSuchAlgorithmException
-
testHashWithFileUrl
- Throws:
IOExceptionNoSuchAlgorithmException
-