Package com.e1c.g5.v8.fastzip
Class FzipExceptionsTest
- java.lang.Object
-
- com.e1c.g5.v8.fastzip.FzipExceptionsTest
-
public class FzipExceptionsTest extends Object
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 Classes Modifier and Type Class Description static class
FzipExceptionsTest.TestIoException
static class
FzipExceptionsTest.TestRuntimeException
-
Field Summary
Fields Modifier and Type Field Description org.junit.rules.TemporaryFolder
temporaryFolder
-
Constructor Summary
Constructors Constructor Description FzipExceptionsTest(boolean mmapped, int numThreads, Class<? extends Exception> excClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Collection<Object>
getParameters()
void
setUp()
void
testNothingIsReadAfterFailure()
void
testNothingIsWrittenAfterFailure()
void
testReadingEntriesWithIoException()
void
testWritingEntriesWithIoException()
-
-
-
Method Detail
-
setUp
public void setUp() throws IOException
- Throws:
IOException
-
testWritingEntriesWithIoException
public void testWritingEntriesWithIoException() throws IOException
- Throws:
IOException
-
testReadingEntriesWithIoException
public void testReadingEntriesWithIoException() throws IOException
- Throws:
IOException
-
testNothingIsWrittenAfterFailure
public void testNothingIsWrittenAfterFailure() throws IOException
- Throws:
IOException
-
testNothingIsReadAfterFailure
public void testNothingIsReadAfterFailure() throws IOException
- Throws:
IOException
-
getParameters
public static Collection<Object> getParameters()
-
-