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 Details

    • BaseJerseyIntegrationTest

      public BaseJerseyIntegrationTest()
  • Method Details

    • setUpAuthentication

      public final void setUpAuthentication()
    • tearDownSecurityContext

      public final void tearDownSecurityContext()
      Clear the SecurityContextHolder so that subsequent tests don't inherit authentication.