From 48a1c291bde8c0365405c7c884989c783e9519fc Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 22 Mar 2024 16:36:40 -0400 Subject: [PATCH] Use better JUnit API --- src/test/java/org/apache/commons/lang3/tuple/PairTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/tuple/PairTest.java b/src/test/java/org/apache/commons/lang3/tuple/PairTest.java index f5c92a76d..134adb2bd 100644 --- a/src/test/java/org/apache/commons/lang3/tuple/PairTest.java +++ b/src/test/java/org/apache/commons/lang3/tuple/PairTest.java @@ -56,8 +56,8 @@ public class PairTest extends AbstractLangTest { final Pair pair1 = Pair.of("A", "D"); final Pair pair2 = Pair.of("B", "C"); final Map 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));