Assert does not throw
@@ -105,9 +105,10 @@ public class FactorialDoubleTest {
@Test
public void testUselessCache() {
- // Ensure that no exception is thrown.
+ Assertions.assertDoesNotThrow(() -> {
LogFactorial.create().withCache(1);
LogFactorial.create().withCache(2);
+ });
}
@Test
