Package ubic.gemma.web.util
Class BaseWebIntegrationTest
java.lang.Object
org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
ubic.gemma.core.util.test.BaseTest
ubic.gemma.web.util.BaseWebIntegrationTest
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
BaseSpringWebTest,ErrorPagesTest,ExpressionDataFileUploadControllerTest,MessageSourceTest,ProgressStatusControllerTest,SignupControllerTest
@ActiveProfiles("web")
@WebAppConfiguration
@ContextConfiguration(locations="classpath*:ubic/gemma/applicationContext-*.xml") @ContextConfiguration(locations="classpath*:WEB-INF/gemma-servlet.xml")
public abstract class BaseWebIntegrationTest
extends BaseTest
Base class for web integration tests.
For a unit-test web test, use BaseWebTest.
- Author:
- poirigui
-
Field Summary
Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final org.springframework.test.web.servlet.ResultActionsperform(org.springframework.test.web.servlet.RequestBuilder requestBuilder) final voidSetup the authentication for the test.final voidClear theSecurityContextHolderso that subsequent tests don't inherit authentication.Methods inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
setApplicationContext
-
Constructor Details
-
BaseWebIntegrationTest
public BaseWebIntegrationTest()
-
-
Method Details
-
setUpAuthentication
public final void setUpAuthentication()Setup the authentication for the test.The default is to grant an administrator authority to the current user.
-
tearDownSecurityContext
public final void tearDownSecurityContext()Clear theSecurityContextHolderso that subsequent tests don't inherit authentication. -
perform
protected final org.springframework.test.web.servlet.ResultActions perform(org.springframework.test.web.servlet.RequestBuilder requestBuilder) throws Exception - Throws:
Exception
-