Class GeoScrapeServiceImplTest

java.lang.Object
ubic.gemma.core.geoscrape.GeoScrapeServiceImplTest

public class GeoScrapeServiceImplTest extends Object
Pure-Mockito tests for the GeoScrapeServiceImpl watermark-loop + enrichment + ticket-emission paths. The persistence methods on the impl (persistWatermark / updateWatermark / updateMatchedCriteria) are spied out so the test doesn't touch a real SessionFactory or TransactionTemplate.
Author:
phase 3 geo-scrape pipeline
  • Constructor Details

    • GeoScrapeServiceImplTest

      public GeoScrapeServiceImplTest()
  • Method Details

    • setUp

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

      @Test public void buildIdentifyingMetadata_emitsCuratorRelevantFields()
    • buildIdentifyingMetadata_nullSafe

      @Test public void buildIdentifyingMetadata_nullSafe()
    • scrape_happyPath_createsPreboardedsAndOneTicketWithEnrichedMetadata

      @Test public void scrape_happyPath_createsPreboardedsAndOneTicketWithEnrichedMetadata() throws Exception
      Throws:
      Exception
    • scrape_forwardsSinceAndUntilToGeoBrowser

      @Test public void scrape_forwardsSinceAndUntilToGeoBrowser() throws Exception
      Throws:
      Exception
    • scrape_omittedSince_resumesFromLastCompletedWatermark

      @Test public void scrape_omittedSince_resumesFromLastCompletedWatermark() throws Exception
      Throws:
      Exception
    • scrape_explicitSince_overridesTheWatermark

      @Test public void scrape_explicitSince_overridesTheWatermark() throws Exception
      Throws:
      Exception
    • scrape_startAt_resolvesAccessionToTheWindowUpperBound

      @Test public void scrape_startAt_resolvesAccessionToTheWindowUpperBound() throws Exception
      Throws:
      Exception
    • scrape_explicitUntil_beatsStartAt

      @Test public void scrape_explicitUntil_beatsStartAt() throws Exception
      Throws:
      Exception
    • scrape_unresolvableStartAt_failsInsteadOfRescanningFromTheTop

      @Test public void scrape_unresolvableStartAt_failsInsteadOfRescanningFromTheTop() throws Exception
      Throws:
      Exception
    • dryRun_reportsTheLastRecordScannedNotJustTheLastMatched

      @Test public void dryRun_reportsTheLastRecordScannedNotJustTheLastMatched() throws Exception
      Throws:
      Exception
    • dryRun_namesRecordsGeoServedUnusableMinimlFor

      @Test public void dryRun_namesRecordsGeoServedUnusableMinimlFor() throws Exception
      Throws:
      Exception
    • dryRun_cleanScanReportsNoIncompleteRecords

      @Test public void dryRun_cleanScanReportsNoIncompleteRecords() throws Exception
      Throws:
      Exception
    • dryRun_skipResumesAtRecordLevelNotAtTheStartOfTheDay

      @Test public void dryRun_skipResumesAtRecordLevelNotAtTheStartOfTheDay() throws Exception
      Throws:
      Exception
    • dryRun_reportsAnAbsoluteNextOffset

      @Test public void dryRun_reportsAnAbsoluteNextOffset() throws Exception
      Throws:
      Exception
    • dryRun_emitsWhyEachCriterionFired

      @Test public void dryRun_emitsWhyEachCriterionFired() throws Exception
      Throws:
      Exception
    • scrape_zeroMatches_doesNotOpenTicket

      @Test public void scrape_zeroMatches_doesNotOpenTicket() throws Exception
      Throws:
      Exception
    • scrape_cancelledMidLoop_doesNotOpenTicket

      @Test public void scrape_cancelledMidLoop_doesNotOpenTicket() throws Exception
      Throws:
      Exception
    • buildTicketNote_truncatesAt20WithOverflowMarker

      @Test public void buildTicketNote_truncatesAt20WithOverflowMarker()
    • buildTicketNote_smallListDoesNotTruncate

      @Test public void buildTicketNote_smallListDoesNotTruncate()