Skip to content

Commit 6e1a721

Browse files
committed
Improve code coverage #60
1 parent 013272f commit 6e1a721

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

payments-api/src/test/java/com/intuit/payment/services/CardServiceTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ public void testgetAllCardCountCustomerBlank() throws BaseException {
4747
cardService.getAllCards("", 0);
4848
}
4949

50+
@Test(expectedExceptions = IllegalArgumentException.class)
51+
public void testgetAllCardCountCustomerNull() throws BaseException {
52+
CardService cardService = new CardService();
53+
cardService.getAllCards(null, 0);
54+
}
55+
5056
@Test(expectedExceptions = IllegalArgumentException.class)
5157
public void testcreateFromTokenCustomerBlank() throws BaseException {
5258
CardService cardService = new CardService();

0 commit comments

Comments
 (0)