@Test public void isValidCardNumber_with_a_null_number_fails() { this.expectedEx.expect(IllegalArgumentException.class); CreditCard4J.isValidCardNumber(null); }
public static boolean isValidCardNumber(String cardNumber) { try { validateCardNumber(cardNumber); return true; } catch (CreditCard4JException e) { return false; } }
CreditCard4J { public static boolean isValidCardNumber(String cardNumber) { try { validateCardNumber(cardNumber); return true; } catch (CreditCard4JException e) { return false; } } }
CreditCard4J { public static boolean isValidCardNumber(String cardNumber) { try { validateCardNumber(cardNumber); return true; } catch (CreditCard4JException e) { return false; } }  }
CreditCard4J { public static boolean isValidCardNumber(String cardNumber) { try { validateCardNumber(cardNumber); return true; } catch (CreditCard4JException e) { return false; } }  static void resetConfig(); static CardBrand getBrand(String cardNumber); static String validateCardNumber(String cardNumber); static boolean isValidCardNumber(String cardNumber); }
CreditCard4J { public static boolean isValidCardNumber(String cardNumber) { try { validateCardNumber(cardNumber); return true; } catch (CreditCard4JException e) { return false; } }  static void resetConfig(); static CardBrand getBrand(String cardNumber); static String validateCardNumber(String cardNumber); static boolean isValidCardNumber(String cardNumber); static String[] ALLOWED_CARD_NUMBERS_SPACING_CHARACTERS; }