Package ubic.gemma.web.util
Class BaseSpringWebTest
- java.lang.Object
-
- org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
-
- ubic.gemma.core.util.test.BaseIntegrationTest
-
- ubic.gemma.core.util.test.BaseSpringContextTest
-
- ubic.gemma.web.util.BaseSpringWebTest
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.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 simplerBaseWebIntegrationTestfor 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
WebAppConfigurationandContextConfigurationwith a static inner class annotated withConfiguration. Seeubic.gemma.web.services.rest.SearchWebServiceTestfor a complete example.- Author:
- pavlidis
-
-
Field Summary
-
Fields inherited from class ubic.gemma.core.util.test.BaseSpringContextTest
externalDatabaseService, log, persisterHelper, rule, taxonService, testHelper
-
-
Constructor Summary
Constructors Constructor Description BaseSpringWebTest()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.springframework.test.web.servlet.ResultActionsperform(org.springframework.test.web.servlet.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
-
-