Class SignupControllerTest

java.lang.Object
org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
ubic.gemma.core.util.test.BaseTest
ubic.gemma.web.util.BaseWebIntegrationTest
ubic.gemma.web.controller.common.auditAndSecurity.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 Details

    • SignupControllerTest

      public SignupControllerTest()
  • Method Details

    • afterPropertiesSet

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

      public void setUp()
    • tearDown

      public void tearDown()
    • testSignup

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

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

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

      public void testSignupWithPasswordDosentMatch() throws Exception
      Throws:
      Exception