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:
Aware
,ApplicationContextAware
- Direct Known Subclasses:
AnalysisResultSetsJerseyTest
,AnalysisResultSetsWebServiceTest
,DatasetsRestTest
,GeneWebServiceTest
,PlatformsWebServiceTest
,RootWebServiceTest
,TaxaWebServiceTest
@ContextConfiguration(locations="classpath*:ubic/gemma/applicationContext-*.xml") public abstract class BaseJerseyIntegrationTest extends BaseJerseyTest
Base class for Jersey-based integration tests.Unfortunately, it's not possible to inherit from
BaseIntegrationTest
so we have to duplicate some of the setup and teardown code.- Author:
- poirigui
- See Also:
BaseIntegrationTest
-
-
Constructor Summary
Constructors Constructor Description BaseJerseyIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUpAuthentication()
void
tearDownSecurityContext()
Clear theSecurityContextHolder
so that subsequent tests don't inherit authentication.-
Methods inherited from class ubic.gemma.rest.util.BaseJerseyTest
configure, configureClient, getTestContainerFactory, setApplicationContext, 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
-
-