Class WhatsNewServiceTest
java.lang.Object
ubic.gemma.core.util.test.BaseTest5
ubic.gemma.core.util.test.BaseIntegrationTest5
ubic.gemma.core.util.test.BaseSpringContextTest5
ubic.gemma.core.analysis.report.WhatsNewServiceTest
The report used to be asserted through its on-disk cache — generate, then read the
Java-serialized
WhatsNew.new / WhatsNew.updated files back and compare. That
cache is gone (its only reader went with gemma-web), so what is left to pin is the query
surface itself: the windows agree with each other, and the cheap count agrees with the full
report.-
Field Summary
Fields inherited from class BaseSpringContextTest5
arrayDesignPersister, externalDatabaseService, log, persisterHelper, taxonService, testHelper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcountNewExpressionExperimentsexists so the dailyHomeStatssnapshot can skipgetReport's platform / taxon / biomaterial passes.voidThe daily window is contained in the weekly one.voidA window that ended before Gemma existed has nothing in it — guards against the count silently ignoring its date argument and returning the whole corpus.Methods inherited from class BaseSpringContextTest5
addTestAnalyses, countRowsInTable, deleteFromTables, getJdbcTemplate, getNewTestPersistentCompleteExpressionExperiment, getTaxon, getTestNonPersistentBioSequence, getTestPersistentArrayDesign, getTestPersistentArrayDesign, getTestPersistentArrayDesign, getTestPersistentBasicExpressionExperiment, getTestPersistentBasicExpressionExperiment, getTestPersistentBibliographicReference, getTestPersistentBioAssay, getTestPersistentBioAssay, getTestPersistentBioMaterial, getTestPersistentBioMaterial, getTestPersistentBioSequence, getTestPersistentBioSequence, getTestPersistentBioSequence2GeneProducts, getTestPersistentBlatResult, getTestPersistentBlatResult, getTestPersistentCompleteExpressionExperiment, getTestPersistentCompleteExpressionExperimentWithSequences, getTestPersistentCompleteExpressionExperimentWithSequences, getTestPersistentContact, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentExpressionExperiment, getTestPersistentExpressionExperiment, getTestPersistentGene, getTestPersistentGene, getTestPersistentGeneProduct, getTestPersistentQuantitationType, randomName, resetTestCollectionSize, runAsAdmin, runAsAgent, runAsAnonymous, runAsUser, runAsUser, setTestCollectionSizeMethods inherited from class BaseIntegrationTest5
setUpAuthentication, tearDownSecurityContext
-
Constructor Details
-
WhatsNewServiceTest
public WhatsNewServiceTest()
-
-
Method Details
-
testDailyReportIsContainedInTheWeeklyReport
@Test public void testDailyReportIsContainedInTheWeeklyReport()The daily window is contained in the weekly one. Holds regardless of what the test DB happens to contain, including when both are empty. -
testCountAgreesWithTheFullReport
@Test public void testCountAgreesWithTheFullReport()countNewExpressionExperimentsexists so the dailyHomeStatssnapshot can skipgetReport's platform / taxon / biomaterial passes. It must not skip anything that changes the number. -
testEmptyWindowCountsZero
@Test public void testEmptyWindowCountsZero()A window that ended before Gemma existed has nothing in it — guards against the count silently ignoring its date argument and returning the whole corpus.
-