Package ubic.gemma.core.util.test
Class BaseIntegrationTest
- java.lang.Object
-
- org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
-
- ubic.gemma.core.util.test.BaseIntegrationTest
-
- All Implemented Interfaces:
Aware
,ApplicationContextAware
- Direct Known Subclasses:
BaseCLIIntegrationTest
,BaseSpringContextTest
,BaseWebIntegrationTest
@ActiveProfiles("test") @ContextConfiguration(locations="classpath*:ubic/gemma/applicationContext-*.xml") public abstract class BaseIntegrationTest extends AbstractJUnit4SpringContextTests
Base class for integration tests.- Author:
- poirigui
-
-
Field Summary
-
Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
applicationContext, logger
-
-
Constructor Summary
Constructors Constructor Description BaseIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUpAuthentication()
Setup the authentication for the test.void
tearDownSecurityContext()
Clear theSecurityContextHolder
so that subsequent tests don't inherit authentication.-
Methods inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
setApplicationContext
-
-
-
-
Method Detail
-
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 theSecurityContextHolder
so that subsequent tests don't inherit authentication.
-
-