Class DefaultCaptchaValidationServiceTest

java.lang.Object
de.hybris.platform.commercewebservicescommons.services.impl.DefaultCaptchaValidationServiceTest

@UnitTest public class DefaultCaptchaValidationServiceTest extends Object
  • Constructor Details

    • DefaultCaptchaValidationServiceTest

      public DefaultCaptchaValidationServiceTest()
  • Method Details

    • setUp

      public void setUp()
    • testValidateShouldThrowCaptchaTokenMissingExceptionWhenContextIsNull

      public void testValidateShouldThrowCaptchaTokenMissingExceptionWhenContextIsNull()
    • testValidateShouldDoNothingWhenCaptchaCheckEnabledIsFalse

      public void testValidateShouldDoNothingWhenCaptchaCheckEnabledIsFalse()
    • testValidateShouldThrowCaptchaTokenMissingExceptionWhenCaptchaTokenIsNull

      public void testValidateShouldThrowCaptchaTokenMissingExceptionWhenCaptchaTokenIsNull()
    • testValidateShouldThrowCaptchaTokenMissingExceptionWhenCaptchaTokenIsEmpty

      public void testValidateShouldThrowCaptchaTokenMissingExceptionWhenCaptchaTokenIsEmpty()
    • testValidateShouldThrowCaptchaTokenMissingExceptionWhenCaptchaTokenIsBlank

      public void testValidateShouldThrowCaptchaTokenMissingExceptionWhenCaptchaTokenIsBlank()
    • testValidateShouldThrowNotFoundExceptionWhenNoProperStrategyFound

      public void testValidateShouldThrowNotFoundExceptionWhenNoProperStrategyFound()
    • testValidateShouldThrowCaptchaValidationExceptionWhenPreCheckFailed

      public void testValidateShouldThrowCaptchaValidationExceptionWhenPreCheckFailed()
    • testValidateShouldThrowCaptchaValidationExceptionWhenTokenIsInvalid

      public void testValidateShouldThrowCaptchaValidationExceptionWhenTokenIsInvalid()
    • testValidateShouldSuccessWhenTokenIsValid

      public void testValidateShouldSuccessWhenTokenIsValid()