Package ubic.gemma.rest.util
Class BaseJerseyIntegrationTest
- java.lang.Object
-
- org.glassfish.jersey.test.JerseyTest
-
- ubic.gemma.rest.util.BaseJerseyTest
-
- ubic.gemma.rest.util.BaseJerseyIntegrationTest
-
- All Implemented Interfaces:
InitializingBean
- Direct Known Subclasses:
AnalysisResultSetsJerseyTest
@ContextConfiguration(locations="classpath*:ubic/gemma/applicationContext-*.xml") public abstract class BaseJerseyIntegrationTest extends BaseJerseyTest
Base class for Jersey-based integration tests.- Author:
- poirigui
-
-
Constructor Summary
Constructors Constructor Description BaseJerseyIntegrationTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUpAuthentication()
static void
setUpSecurityContextHolderStrategy()
void
tearDownSecurityContext()
Clear theSecurityContextHolder
so that subsequent tests don't inherit authentication.-
Methods inherited from class ubic.gemma.rest.util.BaseJerseyTest
afterPropertiesSet, configure, configureClient, getTestContainerFactory, setUp, tearDown
-
Methods inherited from class org.glassfish.jersey.test.JerseyTest
client, close, closeIfNotNull, configureDeployment, disable, enable, forceDisable, forceEnable, forceSet, getAsyncTimeoutMultiplier, getBaseUri, getClient, getLastLoggedRecord, getLoggedRecords, getPort, isEnabled, set, set, setClient, target, target
-
-
-
-
Method Detail
-
setUpSecurityContextHolderStrategy
public static void setUpSecurityContextHolderStrategy()
-
setUpAuthentication
public void setUpAuthentication()
-
tearDownSecurityContext
public final void tearDownSecurityContext()
Clear theSecurityContextHolder
so that subsequent tests don't inherit authentication.
-
-