Class DefaultCreditCardNumberHelperTest

java.lang.Object
de.hybris.platform.order.strategies.paymentinfo.impl.DefaultCreditCardNumberHelperTest

@UnitTest public class DefaultCreditCardNumberHelperTest extends Object
  • Constructor Details

    • DefaultCreditCardNumberHelperTest

      public DefaultCreditCardNumberHelperTest()
  • Method Details

    • createDefaultCreditCardNumberHelper

      public void createDefaultCreditCardNumberHelper() throws Exception
      Throws:
      Exception
    • shouldNotValidateCardNumberWhenInputCardNumberIsImproperlyFormatted

      public void shouldNotValidateCardNumberWhenInputCardNumberIsImproperlyFormatted() throws BusinessException
      Throws:
      BusinessException
    • shouldNotValidateCardNumberWhenThereIsNoRegexpConfiguredForCardType

      public void shouldNotValidateCardNumberWhenThereIsNoRegexpConfiguredForCardType() throws BusinessException
      Throws:
      BusinessException
    • shouldValidateValid16DigitVISACard

      public void shouldValidateValid16DigitVISACard() throws BusinessException
      Throws:
      BusinessException
    • shouldValidateValid13DigitOldVISACard

      public void shouldValidateValid13DigitOldVISACard() throws BusinessException
      Throws:
      BusinessException
    • shouldNotValidateVISACardWithBadStart

      public void shouldNotValidateVISACardWithBadStart() throws BusinessException
      Throws:
      BusinessException
    • shouldNotValidateTooLongVISACard

      public void shouldNotValidateTooLongVISACard() throws BusinessException
      Throws:
      BusinessException
    • shouldNotValidateTooShortVISACard

      public void shouldNotValidateTooShortVISACard() throws BusinessException
      Throws:
      BusinessException
    • shouldNotValidateTooShortOldVISACard

      public void shouldNotValidateTooShortOldVISACard() throws BusinessException
      Throws:
      BusinessException
    • shouldNotValidateTooLongOldVISACard

      public void shouldNotValidateTooLongOldVISACard() throws BusinessException
      Throws:
      BusinessException
    • shouldValidateValidDINERSCard

      public void shouldValidateValidDINERSCard() throws BusinessException
      Throws:
      BusinessException
    • shouldNotValidateDINERSCardWithBadStart

      public void shouldNotValidateDINERSCardWithBadStart() throws BusinessException
      Throws:
      BusinessException
    • shouldNotValidateTooLongDINERSCard

      public void shouldNotValidateTooLongDINERSCard() throws BusinessException
      Throws:
      BusinessException
    • shouldNotValidateTooShortDINERSCard

      public void shouldNotValidateTooShortDINERSCard() throws BusinessException
      Throws:
      BusinessException
    • shouldValidateValidAMEXCard

      public void shouldValidateValidAMEXCard() throws BusinessException
      Throws:
      BusinessException
    • shouldNotValidateTooLongAMEXCard

      public void shouldNotValidateTooLongAMEXCard() throws BusinessException
      Throws:
      BusinessException
    • shouldNotValidateTooShortAMEXCard

      public void shouldNotValidateTooShortAMEXCard() throws BusinessException
      Throws:
      BusinessException
    • shouldValidateValidMASTERCard

      public void shouldValidateValidMASTERCard() throws BusinessException
      Throws:
      BusinessException
    • shouldNotValidateMASTERCardWithBadStart

      public void shouldNotValidateMASTERCardWithBadStart() throws BusinessException
      Throws:
      BusinessException
    • shouldNotValidateTooShortMASTERCard

      public void shouldNotValidateTooShortMASTERCard() throws BusinessException
      Throws:
      BusinessException
    • shouldNotValidateTooLongMASTERCard

      public void shouldNotValidateTooLongMASTERCard() throws BusinessException
      Throws:
      BusinessException
    • shouldMaskValidCreditCardNumber

      public void shouldMaskValidCreditCardNumber()
    • shouldNotMaskShorterThan13DigitsNormalizedCreditCardNumberAndReturnNull

      public void shouldNotMaskShorterThan13DigitsNormalizedCreditCardNumberAndReturnNull()
    • shouldNotMaskLongerThan19DigitsNormalizedCreditCardNumberAndReturnNull

      public void shouldNotMaskLongerThan19DigitsNormalizedCreditCardNumberAndReturnNull()
    • shouldNormalizeHumanReadableCardNumberToOnlyDigits

      public void shouldNormalizeHumanReadableCardNumberToOnlyDigits()