This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-compress.git
The following commit(s) were added to refs/heads/master by this push: new ee732137 Fix broken tests. ee732137 is described below commit ee732137c6c36307bc7cc91c77c1b3b77ae7ce2f Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu May 5 15:39:40 2022 -0400 Fix broken tests. --- .../commons/compress/compressors/lz77support/ParametersTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/compress/compressors/lz77support/ParametersTest.java b/src/test/java/org/apache/commons/compress/compressors/lz77support/ParametersTest.java index 43348b2a..49d6f4ca 100644 --- a/src/test/java/org/apache/commons/compress/compressors/lz77support/ParametersTest.java +++ b/src/test/java/org/apache/commons/compress/compressors/lz77support/ParametersTest.java @@ -21,6 +21,7 @@ package org.apache.commons.compress.compressors.lz77support; import org.junit.jupiter.api.Test; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertThrows; public class ParametersTest { @@ -111,12 +112,12 @@ public class ParametersTest { @Test public void windowSizeMustNotBeSmallerThanMinBackReferenceLength() { - newParameters(128, 200, 300, 400, 500); + assertThrows(IllegalArgumentException.class, () -> newParameters(128, 200, 300, 400, 500)); } @Test public void windowSizeMustBeAPowerOfTwo() { - newParameters(100, 200, 300, 400, 500); + assertThrows(IllegalArgumentException.class, () -> newParameters(100, 200, 300, 400, 500)); } private static Parameters newParameters(final int windowSize) {