Package ubic.gemma.web.util
Class BaseSpringWebTest
-
- All Implemented Interfaces:
Aware
,ApplicationContextAware
- Direct Known Subclasses:
AuditControllerTest
,BibRefControllerTest
,CuratableValueObjectTest
,ExperimentalDesignControllerIntegrationTest
,ExpressionExperimentControllerTest
,PubMedQueryControllerTest
,RssFeedControllerTest
,SecurityControllerTest
,TaskRunningTest
@Deprecated @ActiveProfiles("web") @WebAppConfiguration @ContextConfiguration(locations="classpath*:WEB-INF/gemma-servlet.xml") public abstract class BaseSpringWebTest extends BaseSpringContextTest
Deprecated.favour the simplerBaseWebIntegrationTest
for new testsClass to extend for tests of controllers et al. that need a spring context. Provides convenience methods for dealing with mock requests and responses. Also provides a safe port to send email on for testing (for example, using dumbster)This is meant for integration tests, if you want to perform unit tests, consider using
WebAppConfiguration
andContextConfiguration
with a static inner class annotated withConfiguration
. Seeubic.gemma.web.services.rest.SearchWebServiceTest
for a complete example.- Author:
- pavlidis
-
-
Field Summary
-
Fields inherited from class ubic.gemma.core.util.test.BaseSpringContextTest
externalDatabaseService, log, persisterHelper, rule, taxonService, testHelper
-
Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
logger
-
-
Constructor Summary
Constructors Constructor Description BaseSpringWebTest()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected ResultActions
perform(RequestBuilder requestBuilder)
Deprecated.-
Methods inherited from class ubic.gemma.core.util.test.BaseSpringContextTest
addTestAnalyses, countRowsInTable, deleteFromTables, getJdbcTemplate, 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, setTestCollectionSize
-
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
-
perform
protected final ResultActions perform(RequestBuilder requestBuilder) throws Exception
Deprecated.- Throws:
Exception
- See Also:
MockMvc.perform(RequestBuilder)
-
-