Add NullPointerException test on swapTwoLastTest
This commit is contained in:
parent
3be226d5c0
commit
f873307924
1 changed files with 1 additions and 0 deletions
|
@ -19,5 +19,6 @@ class CVDATPJUnitTest {
|
||||||
Assertions.assertEquals("TENRANI", CVDATPJUnit.swapTwoLast("TENRAIN"));
|
Assertions.assertEquals("TENRANI", CVDATPJUnit.swapTwoLast("TENRAIN"));
|
||||||
Assertions.assertEquals("A", CVDATPJUnit.swapTwoLast("A"));
|
Assertions.assertEquals("A", CVDATPJUnit.swapTwoLast("A"));
|
||||||
Assertions.assertEquals("", CVDATPJUnit.swapTwoLast(""));
|
Assertions.assertEquals("", CVDATPJUnit.swapTwoLast(""));
|
||||||
|
Assertions.assertNull(CVDATPJUnit.swapTwoLast(null));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue