Class GeoScrapeServiceImplTest
java.lang.Object
ubic.gemma.core.geoscrape.GeoScrapeServiceImplTest
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidsetUp()
-
Constructor Details
-
GeoScrapeServiceImplTest
public GeoScrapeServiceImplTest()
-
-
Method Details
-
setUp
-
buildIdentifyingMetadata_emitsCuratorRelevantFields
@Test public void buildIdentifyingMetadata_emitsCuratorRelevantFields() -
buildIdentifyingMetadata_nullSafe
@Test public void buildIdentifyingMetadata_nullSafe() -
scrape_happyPath_createsPreboardedsAndOneTicketWithEnrichedMetadata
-
scrape_forwardsSinceAndUntilToGeoBrowser
-
scrape_omittedSince_resumesFromLastCompletedWatermark
-
scrape_explicitSince_overridesTheWatermark
-
scrape_startAt_resolvesAccessionToTheWindowUpperBound
-
scrape_explicitUntil_beatsStartAt
-
scrape_unresolvableStartAt_failsInsteadOfRescanningFromTheTop
-
dryRun_reportsTheLastRecordScannedNotJustTheLastMatched
-
dryRun_namesRecordsGeoServedUnusableMinimlFor
-
dryRun_cleanScanReportsNoIncompleteRecords
-
dryRun_skipResumesAtRecordLevelNotAtTheStartOfTheDay
-
dryRun_reportsAnAbsoluteNextOffset
-
dryRun_emitsWhyEachCriterionFired
-
scrape_zeroMatches_doesNotOpenTicket
-
scrape_cancelledMidLoop_doesNotOpenTicket
-
buildTicketNote_truncatesAt20WithOverflowMarker
@Test public void buildTicketNote_truncatesAt20WithOverflowMarker() -
buildTicketNote_smallListDoesNotTruncate
@Test public void buildTicketNote_smallListDoesNotTruncate()
-