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
-
Field Summary
Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
logger -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ubic.gemma.web.util.BaseWebIntegrationTest
perform, setUpAuthentication, tearDownSecurityContextMethods inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
setApplicationContext
-
Constructor Details
-
SignupControllerTest
public SignupControllerTest()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
setUp
public void setUp() -
tearDown
public void tearDown() -
testSignup
- Throws:
Exception
-
testSignupWhenRecaptchaIsDisabled
- Throws:
Exception
-
testSignupWithRecaptchaIsInvalid
- Throws:
Exception
-
testSignupWithPasswordDosentMatch
- Throws:
Exception
-