Class BaseIntegrationTest

java.lang.Object
org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
ubic.gemma.core.util.test.BaseTest
ubic.gemma.core.util.test.BaseIntegrationTest
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
AnnDataSingleCellDataLoaderIntegrationTest, ArrayDesignServiceTest, BaseCliIntegrationTest, BaseSpringContextTest, BatchInfoRepopulationJobTest, CellXGeneDataLoaderServiceTest, DifferentialExpressionAnalysisServiceTest, DifferentialExpressionResultServiceTest, FilteringVoEnabledServiceIntegrationTest, GeneSearchTest, GeneServiceTest, GeoConverterTest, ProcessedExpressionDataVectorCreationHelperServiceTest, SchedulerSecurityTest, SingleCellDataLoaderServiceIntegrationTest, SingleCellExpressionExperimentCreateSubSetsAndAggregateServiceTest, SingleCellIntegrationTest, TableMaintenanceUtilIntegrationTest, TaxonServiceImplTest

@ContextConfiguration(locations="classpath*:ubic/gemma/applicationContext-*.xml") public abstract class BaseIntegrationTest extends BaseTest
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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    Setup the authentication for the test.
    final void
    Clear the SecurityContextHolder so that subsequent tests don't inherit authentication.

    Methods inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests

    setApplicationContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BaseIntegrationTest

      public BaseIntegrationTest()
  • Method Details

    • 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 the SecurityContextHolder so that subsequent tests don't inherit authentication.