Simplify to assertNull(Object, String)
This commit is contained in:
parent
f56a57f901
commit
0e399659c1
|
@ -97,7 +97,7 @@ class Junit5AssertionsUnitTest {
|
||||||
"heading",
|
"heading",
|
||||||
() -> assertEquals(4, 2 * 2, "4 is 2 times 2"),
|
() -> assertEquals(4, 2 * 2, "4 is 2 times 2"),
|
||||||
() -> assertEquals("java", "JAVA".toLowerCase()),
|
() -> assertEquals("java", "JAVA".toLowerCase()),
|
||||||
() -> assertEquals(obj, null, "null is equal to null")
|
() -> assertNull(obj, "obj is null")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue