Class GoogleRecaptchaV2ValidationStrategyTest

java.lang.Object
de.hybris.platform.commercewebservicescommons.strategies.impl.GoogleRecaptchaV2ValidationStrategyTest

@UnitTest public class GoogleRecaptchaV2ValidationStrategyTest extends Object
  • Constructor Details

    • GoogleRecaptchaV2ValidationStrategyTest

      public GoogleRecaptchaV2ValidationStrategyTest()
  • Method Details

    • init

      public void init() throws IOException
      Throws:
      IOException
    • testValidateShouldValidateFailedSinceContextIsNull

      public void testValidateShouldValidateFailedSinceContextIsNull() throws IOException
      Throws:
      IOException
    • testValidateShouldValidateFailedSinceContextIsEmpty

      public void testValidateShouldValidateFailedSinceContextIsEmpty() throws IOException
      Throws:
      IOException
    • testValidateShouldValidateFailedSincePrivateKeyIsEmpty

      public void testValidateShouldValidateFailedSincePrivateKeyIsEmpty() throws IOException
      Throws:
      IOException
    • testValidateShouldValidateFailedSincePrivateKeyIsInvalid

      public void testValidateShouldValidateFailedSincePrivateKeyIsInvalid() throws IOException
      Throws:
      IOException
    • testValidateShouldValidateFailedSinceTokenIsInvalid

      public void testValidateShouldValidateFailedSinceTokenIsInvalid() throws IOException
      Throws:
      IOException
    • testValidateShouldValidateFailedSinceTokenIsTimeoutOrDuplicated

      public void testValidateShouldValidateFailedSinceTokenIsTimeoutOrDuplicated() throws IOException
      Throws:
      IOException
    • testValidateShouldfailedSinceHostNameNotMatch

      public void testValidateShouldfailedSinceHostNameNotMatch() throws IOException
      Throws:
      IOException
    • testValidateShouldSuccessWhenHostNameIsTestKey

      public void testValidateShouldSuccessWhenHostNameIsTestKey() throws IOException
      Throws:
      IOException
    • testValidateShouldSuccessWhenHostNameCheckIsEnabled

      public void testValidateShouldSuccessWhenHostNameCheckIsEnabled() throws IOException
      Throws:
      IOException
    • testValidateShouldSuccessWhenHostNameCheckIsDisabled

      public void testValidateShouldSuccessWhenHostNameCheckIsDisabled() throws IOException
      Throws:
      IOException
    • testValidateShouldFailedSinceResponseIsEmpty

      public void testValidateShouldFailedSinceResponseIsEmpty() throws IOException
      Throws:
      IOException
    • testValidateShouldFailedAndReasonIsNull

      public void testValidateShouldFailedAndReasonIsNull() throws IOException
      Throws:
      IOException
    • testValidateShouldFailedSinceSuccessInResponseIsNull

      public void testValidateShouldFailedSinceSuccessInResponseIsNull() throws IOException
      Throws:
      IOException
    • testValidateShouldValidateFailedReturn429

      public void testValidateShouldValidateFailedReturn429() throws IOException
      Throws:
      IOException
    • testValidateShouldValidateFailedReturn400

      public void testValidateShouldValidateFailedReturn400() throws IOException
      Throws:
      IOException
    • testGetProviderType

      public void testGetProviderType()
    • testGetVersion

      public void testGetVersion()
    • testPreCheckTokenShouldReturnFalseWhenPatternIsNotMatch

      public void testPreCheckTokenShouldReturnFalseWhenPatternIsNotMatch()
    • testPreCheckTokenShouldReturnTrueWhenPatternIsMatch

      public void testPreCheckTokenShouldReturnTrueWhenPatternIsMatch()