Class BaseIntegrationTest5

java.lang.Object
ubic.gemma.core.util.test.BaseTest5
ubic.gemma.core.util.test.BaseIntegrationTest5
Direct Known Subclasses:
AnnDataSingleCellDataLoaderIntegrationTest, AnnotationSetDispositionPersistenceIT, AnnotationSetPersistenceIT, AnnotationSetTriagePersistenceIT, ArrayDesignFactoryTest, ArrayDesignServiceTest, AuditTrailForeignKeyIntegrationTest, BaseCliIntegrationTest5, BaseSpringContextTest5, BatchInfoRepopulationJobTest, BioAssayFactoryTest, BioMaterialFactoryTest, CellXGeneDataLoaderServiceTest, CharacteristicDaoMySqlIntegrationTest, CompositeSequenceFactoryTest, CurationDecisionPersistenceIT, CurationLockPersistenceIT, DifferentialExpressionAnalysisServiceTest, DifferentialExpressionResultServiceTest, ExperimentFactoryTest, FilteringVoEnabledServiceIntegrationTest, GeneFactoryTest, GeneSearchTest, GeneServiceTest, GeoConverterTest, ProcessedExpressionDataVectorCreationHelperServiceTest, PublicationAssociationPersistenceIT, SchedulerSecurityTest, SingleCellDataLoaderServiceIntegrationTest, SingleCellExpressionExperimentCreateSubSetsAndAggregateServiceTest, SingleCellIntegrationTest, TableMaintenanceUtilIntegrationTest, TaxonFactoryTest, TaxonServiceImplTest, TicketPersistenceIT

@Tag("integration") @ContextConfiguration(locations="classpath*:ubic/gemma/applicationContext-*.xml") public abstract class BaseIntegrationTest5 extends BaseTest5
JUnit 5 (Jupiter) base class for integration tests, tagged @Tag("integration") for surefire/failsafe filtering.

Spring's SecurityContextHolder is cleared after every test so authentication state doesn't leak across runs.

  • Constructor Details

    • BaseIntegrationTest5

      public BaseIntegrationTest5()
  • Method Details

    • setUpAuthentication

      @BeforeEach public final void setUpAuthentication()
      Setup the authentication for the test.

      The default is to grant an administrator authority to the current user.

    • tearDownSecurityContext

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