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:
Aware
,InitializingBean
,ApplicationContextAware
@DirtiesContext(classMode=AFTER_CLASS) public class SignupControllerTest extends BaseWebIntegrationTest implements InitializingBean
This test replaces the recaptcha service used bySignupController
, so it is annotated withDirtiesContext
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 Constructor Description SignupControllerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
void
setUp()
void
tearDown()
void
testSignup()
void
testSignupWhenRecaptchaIsDisabled()
void
testSignupWithPasswordDosentMatch()
void
testSignupWithRecaptchaIsInvalid()
-
Methods inherited from class ubic.gemma.web.util.BaseWebIntegrationTest
perform
-
Methods inherited from class ubic.gemma.core.util.test.BaseIntegrationTest
setUpAuthentication, tearDownSecurityContext
-
Methods inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
setApplicationContext
-
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-
setUp
public void setUp()
-
tearDown
public void tearDown()
-
testSignupWhenRecaptchaIsDisabled
public void testSignupWhenRecaptchaIsDisabled() throws Exception
- Throws:
Exception
-
testSignupWithRecaptchaIsInvalid
public void testSignupWithRecaptchaIsInvalid() throws Exception
- Throws:
Exception
-
-