Skip to content

Commit f90ad28

Browse files
add more print out to help understand
1 parent 61a75ba commit f90ad28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/test/junit5/Junit5Test.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@ void init() {
3030
@DisplayName("Single test successful")
3131
@Test
3232
void testSingleSuccessTest() {
33-
System.out.println("Success");
33+
System.out.println("in testSingleSuccessTest");
3434
assertEquals(5 + 2, 7);
3535
}
3636

3737
@Test
3838
void shouldThrowException() {
39+
System.out.println("in shouldThrowException");
3940
Throwable exception = assertThrows(UnsupportedOperationException.class, () -> {
4041
throw new UnsupportedOperationException("Not supported");
4142
});
@@ -44,6 +45,7 @@ void shouldThrowException() {
4445

4546
@Test
4647
void assertThrowsException() {
48+
System.out.println("in assertThrowsException");
4749
String str = null;
4850
assertThrows(IllegalArgumentException.class, () -> {
4951
Integer.valueOf(str);
@@ -53,6 +55,7 @@ void assertThrowsException() {
5355
@ParameterizedTest
5456
@MethodSource("data")
5557
public void parameterizedTest(String input, boolean expected) {
58+
System.out.println("input is: " + input + ", expected is: " + expected);
5659
assertEquals(expected, Strings.isBlank(input));
5760
}
5861

0 commit comments

Comments
 (0)