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-
IOExceptions andRuntimeExceptions 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 classFzipExceptionsTest.TestIoExceptionstatic classFzipExceptionsTest.TestRuntimeException
-
Field Summary
Fields Modifier and Type Field Description org.junit.rules.TemporaryFoldertemporaryFolder
-
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()voidsetUp()voidtestNothingIsReadAfterFailure()voidtestNothingIsWrittenAfterFailure()voidtestReadingEntriesWithIoException()voidtestWritingEntriesWithIoException()
-
-
-
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()
-
-