From f873307924831e510723c8dcf8f6e3bdab94fda5 Mon Sep 17 00:00:00 2001 From: CHARLAIX FLORIAN p1905458 Date: Fri, 24 Apr 2020 10:57:15 +0200 Subject: [PATCH] Add NullPointerException test on swapTwoLastTest --- test/cvdatpjunit/CVDATPJUnitTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/test/cvdatpjunit/CVDATPJUnitTest.java b/test/cvdatpjunit/CVDATPJUnitTest.java index fd8bb95..e25c634 100644 --- a/test/cvdatpjunit/CVDATPJUnitTest.java +++ b/test/cvdatpjunit/CVDATPJUnitTest.java @@ -19,5 +19,6 @@ class CVDATPJUnitTest { Assertions.assertEquals("TENRANI", CVDATPJUnit.swapTwoLast("TENRAIN")); Assertions.assertEquals("A", CVDATPJUnit.swapTwoLast("A")); Assertions.assertEquals("", CVDATPJUnit.swapTwoLast("")); + Assertions.assertNull(CVDATPJUnit.swapTwoLast(null)); } }