@UnitTest public class DefaultCreditCardNumberHelperTest extends java.lang.Object
| Constructor and Description |
|---|
DefaultCreditCardNumberHelperTest() |
public void createDefaultCreditCardNumberHelper()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldNotValidateCardNumberWhenInputCardNumberIsImproperlyFormatted()
throws BusinessException
BusinessExceptionpublic void shouldNotValidateCardNumberWhenThereIsNoRegexpConfiguredForCardType()
throws BusinessException
BusinessExceptionpublic void shouldValidateValid16DigitVISACard()
throws BusinessException
BusinessExceptionpublic void shouldValidateValid13DigitOldVISACard()
throws BusinessException
BusinessExceptionpublic void shouldNotValidateVISACardWithBadStart()
throws BusinessException
BusinessExceptionpublic void shouldNotValidateTooLongVISACard()
throws BusinessException
BusinessExceptionpublic void shouldNotValidateTooShortVISACard()
throws BusinessException
BusinessExceptionpublic void shouldNotValidateTooShortOldVISACard()
throws BusinessException
BusinessExceptionpublic void shouldNotValidateTooLongOldVISACard()
throws BusinessException
BusinessExceptionpublic void shouldValidateValidDINERSCard()
throws BusinessException
BusinessExceptionpublic void shouldNotValidateDINERSCardWithBadStart()
throws BusinessException
BusinessExceptionpublic void shouldNotValidateTooLongDINERSCard()
throws BusinessException
BusinessExceptionpublic void shouldNotValidateTooShortDINERSCard()
throws BusinessException
BusinessExceptionpublic void shouldValidateValidAMEXCard()
throws BusinessException
BusinessExceptionpublic void shouldNotValidateTooLongAMEXCard()
throws BusinessException
BusinessExceptionpublic void shouldNotValidateTooShortAMEXCard()
throws BusinessException
BusinessExceptionpublic void shouldValidateValidMASTERCard()
throws BusinessException
BusinessExceptionpublic void shouldNotValidateMASTERCardWithBadStart()
throws BusinessException
BusinessExceptionpublic void shouldNotValidateTooShortMASTERCard()
throws BusinessException
BusinessExceptionpublic void shouldNotValidateTooLongMASTERCard()
throws BusinessException
BusinessExceptionpublic void shouldMaskValidCreditCardNumber()
public void shouldNotMaskShorterThan13DigitsNormalizedCreditCardNumberAndReturnNull()
public void shouldNotMaskLongerThan19DigitsNormalizedCreditCardNumberAndReturnNull()
public void shouldNormalizeHumanReadableCardNumberToOnlyDigits()
Copyright © 2018 SAP SE. All Rights Reserved.