Package com.e1c.g5.v8.fastzip
Class FzipExceptionsTest
java.lang.Object
com.e1c.g5.v8.fastzip.FzipExceptionsTest
As exception handling in the parallel implementation is tricky, we test that
-
IOException
s andRuntimeException
s thrown while reading or writing an entry are preserved. - Nothing is read after
IFzipReader.read()
terminates exceptionally. - Nothing is written after
IFzipWriter.write(IFzipEntry[])
terminates exceptionally.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFzipExceptionsTest
(boolean mmapped, int numThreads, Class<? extends Exception> excClass) -
Method Summary
-
Field Details
-
temporaryFolder
public final org.junit.rules.TemporaryFolder temporaryFolder
-
-
Constructor Details
-
FzipExceptionsTest
-
-
Method Details
-
setUp
- Throws:
IOException
-
testWritingEntriesWithIoException
- Throws:
IOException
-
testReadingEntriesWithIoException
- Throws:
IOException
-
testNothingIsWrittenAfterFailure
- Throws:
IOException
-
testNothingIsReadAfterFailure
- Throws:
IOException
-
getParameters
-