Class WhatsNewServiceTest


public class WhatsNewServiceTest extends BaseSpringContextTest5
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.
  • 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()
      countNewExpressionExperiments exists so the daily HomeStats snapshot can skip getReport'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.