@Test public void throwsExceptionGivenUnparseableExpirationDate() { try { boletoPayment.setExpirationDate("2016-32-32"); System.out.println(boletoPayment.getExpirationDate().toString()); fail("expected exception"); } catch (RuntimeException e) { } }
@Test public void typeIsBoletoTest() { assertEquals(KondutoPaymentType.BOLETO, boletoPayment.getType()); }
@Test public void isValidWithoutExpirationDate() { assertTrue(boletoPayment.isValid()); }