Class SignupControllerTest
- java.lang.Object
-
- org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
-
- ubic.gemma.core.util.test.BaseSpringContextTest
-
- ubic.gemma.web.util.BaseSpringWebTest
-
- ubic.gemma.web.controller.common.auditAndSecurity.SignupControllerTest
-
- All Implemented Interfaces:
Aware,InitializingBean,ApplicationContextAware
@DirtiesContext(classMode=AFTER_CLASS) public class SignupControllerTest extends BaseSpringWebTest
This test replaces the recaptcha service used bySignupController, so it is annotated withDirtiesContextto invalidate the context once all the tests have completed.- Author:
- Paul
-
-
Field Summary
-
Fields inherited from class ubic.gemma.web.util.BaseSpringWebTest
applicationContext, mvc
-
Fields inherited from class ubic.gemma.core.util.test.BaseSpringContextTest
externalDatabaseService, jdbcTemplate, log, persisterHelper, rule, taxonService, testHelper
-
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 voidafterPropertiesSet()voidsetUp()voidtearDown()voidtestSignup()voidtestSignupWhenRecaptchaIsDisabled()voidtestSignupWithPasswordDosentMatch()voidtestSignupWithRecaptchaIsInvalid()-
Methods inherited from class ubic.gemma.web.util.BaseSpringWebTest
newGet, newPost
-
Methods inherited from class ubic.gemma.core.util.test.BaseSpringContextTest
addTestAnalyses, countRowsInTable, deleteFromTables, executeSqlScript, getNewTestPersistentCompleteExpressionExperiment, getTaxon, getTestNonPersistentBioSequence, getTestPersistentArrayDesign, getTestPersistentArrayDesign, getTestPersistentArrayDesign, getTestPersistentBasicExpressionExperiment, getTestPersistentBasicExpressionExperiment, getTestPersistentBibliographicReference, getTestPersistentBioAssay, getTestPersistentBioAssay, getTestPersistentBioMaterial, getTestPersistentBioMaterial, getTestPersistentBioSequence, getTestPersistentBioSequence, getTestPersistentBioSequence2GeneProducts, getTestPersistentBlatResult, getTestPersistentBlatResult, getTestPersistentCompleteExpressionExperiment, getTestPersistentCompleteExpressionExperimentWithSequences, getTestPersistentCompleteExpressionExperimentWithSequences, getTestPersistentContact, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentExpressionExperiment, getTestPersistentExpressionExperiment, getTestPersistentGene, getTestPersistentGene, getTestPersistentGeneProduct, getTestPersistentQuantitationType, randomName, resetTestCollectionSize, runAsAdmin, runAsAgent, runAsAnonymous, runAsUser, runAsUser, setPersisterHelper, setTaxonService, setTestCollectionSize, setUpAuthentication, setUpSecurityContextHolderStrategy, tearDownSecurityContext
-
Methods inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
setApplicationContext
-
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Overrides:
afterPropertiesSetin classBaseSpringWebTest
-
setUp
public void setUp()
-
tearDown
public void tearDown()
-
testSignupWhenRecaptchaIsDisabled
public void testSignupWhenRecaptchaIsDisabled() throws Exception- Throws:
Exception
-
testSignupWithRecaptchaIsInvalid
public void testSignupWithRecaptchaIsInvalid() throws Exception- Throws:
Exception
-
-