Class CompositeSequenceGeneMapperServiceFastTest


@ContextConfiguration(classes=ubic.gemma.core.analysis.service.CompositeSequenceGeneMapperServiceFastTest.FastGoldenPathConfig.class, inheritLocations=false) @Tag("slow") public class CompositeSequenceGeneMapperServiceFastTest extends AbstractGeoServiceTest5
Fast mock variant of CompositeSequenceGeneMapperServiceTest.

Mirrors the assertions of the @Tag("goldenPath") truth-source test, but replaces the live UCSC GoldenPath lookup with a Mockito stub backed by a JSON fixture captured from hg19 (see data/loader/genome/goldenpath/gpl96-hg19-fixture.json and GoldenPathFixtureRecorder).

The seam is the GoldenPathSequenceAnalysisFactory bean (commit 317ea9c785). The inner CompositeSequenceGeneMapperServiceFastTest.FastGoldenPathConfig registers a @Primary factory that returns a Mockito-mocked GoldenPathSequenceAnalysis whose findAssociations responses come from the fixture.

  • Constructor Details

    • CompositeSequenceGeneMapperServiceFastTest

      public CompositeSequenceGeneMapperServiceFastTest()
  • Method Details

    • cleanup

      @AfterEach public void cleanup()
    • setUp

      @BeforeEach public void setUp() throws Exception
      Throws:
      Exception
    • testGetCompositeSequencesByGeneId

      @Test public void testGetCompositeSequencesByGeneId()
    • testGetGenesForCompositeSequence

      @Test public void testGetGenesForCompositeSequence()