Class SignupControllerTest

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

    @DirtiesContext(classMode=AFTER_CLASS)
    public class SignupControllerTest
    extends BaseWebIntegrationTest
    implements org.springframework.beans.factory.InitializingBean
    This test replaces the recaptcha service used by SignupController, so it is annotated with DirtiesContext to invalidate the context once all the tests have completed.
    Author:
    Paul
    • Constructor Detail

      • SignupControllerTest

        public SignupControllerTest()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • setUp

        public void setUp()
      • tearDown

        public void tearDown()
      • testSignupWhenRecaptchaIsDisabled

        public void testSignupWhenRecaptchaIsDisabled()
                                               throws Exception
        Throws:
        Exception
      • testSignupWithRecaptchaIsInvalid

        public void testSignupWithRecaptchaIsInvalid()
                                              throws Exception
        Throws:
        Exception
      • testSignupWithPasswordDosentMatch

        public void testSignupWithPasswordDosentMatch()
                                               throws Exception
        Throws:
        Exception