@@ -0,0 +1,2796 @@
+/*******************************************************************************%0A * Copyright (c) 2019 Intuit%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *  http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A *******************************************************************************/%0Apackage com.intuit.payment.services;%0A%0Aimport org.testng.annotations.Test;%0A%0Aimport com.intuit.payment.data.Card;%0Aimport com.intuit.payment.data.Token;%0Aimport com.intuit.payment.exception.BaseException;%0A%0Apublic class CardServiceTest %7B%0A%09%0A%09@Test(expectedExceptions = IllegalArgumentException.class)%0A    public void testcreateCustomerBlank() throws BaseException %7B%0A       CardService cardService = new CardService();%0A%09   cardService.create(new Card(), %22%22);%0A    %7D%0A%09%0A%09@Test(expectedExceptions = IllegalArgumentException.class)%0A    public void testgetAllCardsCustomerBlank() throws BaseException %7B%0A       CardService cardService = new CardService();%0A%09   cardService.getAllCards(%22%22);%0A    %7D%0A%09%0A%09@Test(expectedExceptions = IllegalArgumentException.class)%0A    public void testgetAllCardsCustomerNull() throws BaseException %7B%0A       CardService cardService = new CardService();%0A%09   cardService.getAllCards(null);%0A    %7D%0A%09%0A%09@Test(expectedExceptions = IllegalArgumentException.class)%0A    public void testgetAllCardCountCustomerBlank() throws BaseException %7B%0A       CardService cardService = new CardService();%0A%09   cardService.getAllCards(%22%22, 0);%0A    %7D%0A%09%0A%09@Test(expectedExceptions = IllegalArgumentException.class)%0A    public void testcreateFromTokenCustomerBlank() throws BaseException %7B%0A       CardService cardService = new CardService();%0A%09   cardService.createFromToken(new Token(), %22%22);%0A    %7D%0A%09%0A%09@Test(expectedExceptions = IllegalArgumentException.class)%0A    public void testdeleteCustomerBlank() throws BaseException %7B%0A       CardService cardService = new CardService();%0A%09   cardService.delete(%22%22, %22%22);%0A    %7D%0A%09%0A%09@Test(expectedExceptions = IllegalArgumentException.class)%0A    public void testgetCardCustomerBlank() throws BaseException %7B%0A       CardService cardService = new CardService();%0A%09   cardService.getCard(%22%22, %2212345%22);%0A    %7D%0A%09%0A%09@Test(expectedExceptions = IllegalArgumentException.class)%0A    public void testgetCardCardIdBlank() throws BaseException %7B%0A       CardService cardService = new CardService();%0A%09   cardService.getCard(%22customerid%22, %22%22);%0A    %7D%0A%7D%0A

Improve code coverage #60