Fixed test coverage in LogFactorialTest
@@ -26,12 +26,20 @@ import org.junit.jupiter.api.Test;
*/
public class LogFactorialTest {
@Test
- public void testNonPositiveArgument() {
+ public void testNonPositiveArgumentWithCache() {
Assertions.assertThrows(IllegalArgumentException.class,
() -> LogFactorial.create().withCache(-1)
);
}
+ @Test
+ public void testNonPositiveArgument() {
+ final LogFactorial f = LogFactorial.create();
+ Assertions.assertThrows(IllegalArgumentException.class,
+ () -> f.value(-1)
+ );
+ }
+
@Test
public void testDelegation() {
final LogFactorial f = LogFactorial.create();
