Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

assert multiple junit

public void shouldTellIfPrime(){
    Assertions.assertAll(
            () -> assertTrue(isPrime(2)),
            () -> assertFalse(isPrime(4))
    );
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #assert #multiple #junit
ADD COMMENT
Topic
Name
2+2 =