Answers for "assert multiple junit"

0

assert multiple junit

public void shouldTellIfPrime(){
    Assertions.assertAll(
            () -> assertTrue(isPrime(2)),
            () -> assertFalse(isPrime(4))
    );
}
Posted by: Guest on December-24-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language