This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit b888cbc6e25a519f90bd8c2ef1de99bc06029bf9 Author: Eitan Adler <li...@eitanadler.com> AuthorDate: Sun Jun 9 22:47:15 2019 -0700 Assert does not throw --- .../apache/commons/numbers/combinatorics/FactorialDoubleTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/commons-numbers-combinatorics/src/test/java/org/apache/commons/numbers/combinatorics/FactorialDoubleTest.java b/commons-numbers-combinatorics/src/test/java/org/apache/commons/numbers/combinatorics/FactorialDoubleTest.java index 7bda440..4d8d96d 100644 --- a/commons-numbers-combinatorics/src/test/java/org/apache/commons/numbers/combinatorics/FactorialDoubleTest.java +++ b/commons-numbers-combinatorics/src/test/java/org/apache/commons/numbers/combinatorics/FactorialDoubleTest.java @@ -105,9 +105,10 @@ public class FactorialDoubleTest { @Test public void testUselessCache() { - // Ensure that no exception is thrown. - LogFactorial.create().withCache(1); - LogFactorial.create().withCache(2); + Assertions.assertDoesNotThrow(() -> { + LogFactorial.create().withCache(1); + LogFactorial.create().withCache(2); + }); } @Test