From e8b5a1cdad0b2495d43b4113ff9add762a5c1949 Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Wed, 23 Sep 2020 09:21:58 -0600 Subject: [PATCH] MergeDuplicateWaysTest: FIXUP sonar issue Signed-off-by: Taylor Smock --- .../josm/plugins/mapwithai/commands/MergeDuplicateWaysTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/org/openstreetmap/josm/plugins/mapwithai/commands/MergeDuplicateWaysTest.java b/test/unit/org/openstreetmap/josm/plugins/mapwithai/commands/MergeDuplicateWaysTest.java index beff46f..2a814df 100644 --- a/test/unit/org/openstreetmap/josm/plugins/mapwithai/commands/MergeDuplicateWaysTest.java +++ b/test/unit/org/openstreetmap/josm/plugins/mapwithai/commands/MergeDuplicateWaysTest.java @@ -218,7 +218,7 @@ public class MergeDuplicateWaysTest { assertFalse(MergeDuplicateWays.checkDirection(set), "The direction is not the same"); pair1.b.a = pair1.b.a - 2; - assertThrows(NullPointerException.class, () -> assertNull(MergeDuplicateWays.checkDirection(null)), + assertThrows(NullPointerException.class, () -> MergeDuplicateWays.checkDirection(null), "Throw an NPE if the argument is null"); assertFalse(MergeDuplicateWays.checkDirection(Collections.emptySet()),