private void assertThatNoteIsForGiftCertificate(final String refundEventNote) { assertThat( "Payment type should be included in note.", refundEventNote, containsString(PaymentType.GIFT_CERTIFICATE.name())); assertThat( "Masked Gift Certificate code should be included in note.", refundEventNote, containsString(mockCreditCardEncrypter.mask(TEST_GIFT_CERTIFICATE_CODE))); }
private void assertThatNoteIsForCreditCard(final String captureEventNote) { assertThat( "Payment type should be included in note.", captureEventNote, containsString(PaymentType.CREDITCARD.name())); assertThat( "Credit card type should be included in note.", captureEventNote, containsString(TEST_CREDIT_CARD_TYPE)); assertThat( "Masked credit card value should be included in note.", captureEventNote, containsString(mockCreditCardEncrypter.mask(TEST_CREDIT_CARD_NUMBER))); }