Class SignupControllerTest
- java.lang.Object
-
- org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
-
- ubic.gemma.core.util.test.BaseIntegrationTest
-
- 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 bySignupController, so it is annotated withDirtiesContextto invalidate the context once all the tests have completed.- Author:
- Paul
-
-
Constructor Summary
Constructors Constructor Description SignupControllerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voidsetUp()voidtearDown()voidtestSignup()voidtestSignupWhenRecaptchaIsDisabled()voidtestSignupWithPasswordDosentMatch()voidtestSignupWithRecaptchaIsInvalid()-
Methods inherited from class ubic.gemma.web.util.BaseWebIntegrationTest
perform
-
Methods inherited from class ubic.gemma.core.util.test.BaseIntegrationTest
setUpAuthentication, tearDownSecurityContext
-
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.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
-
-