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:
org.springframework.beans.factory.Aware,org.springframework.context.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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal voidClear theSecurityContextHolderso that subsequent tests don't inherit authentication.Methods inherited from class ubic.gemma.rest.util.BaseJerseyTest
configure, configureClient, getTestContainerFactory, setApplicationContext, setUp, tearDownMethods 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
-
Constructor Details
-
BaseJerseyIntegrationTest
public BaseJerseyIntegrationTest()
-
-
Method Details
-
setUpAuthentication
public final void setUpAuthentication() -
tearDownSecurityContext
public final void tearDownSecurityContext()Clear theSecurityContextHolderso that subsequent tests don't inherit authentication.
-