Class DefaultCaptchaValidationServiceTest
java.lang.Object
de.hybris.platform.commercewebservicescommons.services.impl.DefaultCaptchaValidationServiceTest
Test suite for
CaptchaValidationService-
Constructor Summary
Constructors -
Method Summary
-
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()
-