Use better JUnit API

This commit is contained in:
Gary Gregory 2024-03-22 16:36:40 -04:00
parent be6501ef4a
commit 48a1c291bd
1 changed files with 2 additions and 2 deletions

View File

@ -56,8 +56,8 @@ public class PairTest extends AbstractLangTest {
final Pair<String, String> pair1 = Pair.of("A", "D");
final Pair<String, String> pair2 = Pair.of("B", "C");
final Map<String, String> map = new HashMap<>();
assertEquals(null, pair1.apply(map::put));
assertEquals(null, pair2.apply(map::put));
assertNull(pair1.apply(map::put));
assertNull(pair2.apply(map::put));
assertEquals("D", map.get("A"));
assertEquals("C", map.get("B"));
assertEquals("D", pair1.apply(map::put));