diff --git a/src/test/java/io/usethesource/vallang/basic/BinaryIoSmokeTest.java b/src/test/java/io/usethesource/vallang/basic/BinaryIoSmokeTest.java index d4f4952c..8aec7ce7 100644 --- a/src/test/java/io/usethesource/vallang/basic/BinaryIoSmokeTest.java +++ b/src/test/java/io/usethesource/vallang/basic/BinaryIoSmokeTest.java @@ -12,7 +12,6 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.fail; - import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; @@ -27,10 +26,8 @@ import java.util.HashMap; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; -import org.checkerframework.checker.nullness.qual.Nullable; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ArgumentsSource; - import io.usethesource.vallang.ArgumentsMaxDepth; import io.usethesource.vallang.ArgumentsMaxWidth; import io.usethesource.vallang.ExpectedType; @@ -190,7 +187,7 @@ public void testDeepRandomValuesIO(IValueFactory vf, TypeStore ts, IValue val) t ValueStreams.bottomupbf(val).forEach(v -> { try { ioRoundTrip(vf, ts, v); - } catch (IOException error) { + } catch (Throwable error) { fail(error); } }); @@ -249,7 +246,7 @@ private void ioRoundTrip(IValueFactory vf, TypeStore ts, IValue value) throws IO ioRoundTrip(vf, ts, value, rate); } catch (Throwable e) { - throw new RuntimeException("Error with "+ rate + " compression", e); + fail("Error with "+ rate + " compression", e); } } } @@ -295,7 +292,7 @@ private void ioRoundTripFile(IValueFactory vf, TypeStore ts, IValue value) throw ioRoundTripFile(vf, ts, value, rate); } catch (Throwable e) { - throw new RuntimeException("Error with "+ rate + " compression", e); + fail("Error with "+ rate + " compression", e); } } } @@ -327,7 +324,7 @@ private void ioRoundTripFile2(IValueFactory vf, TypeStore ts, IValue value) thro ioRoundTripFile2(vf, ts, value, rate); } catch (Throwable e) { - throw new RuntimeException("Error with "+ rate + " compression", e); + fail("Error with "+ rate + " compression", e); } } }