Class AnnotationSearchRankingStrategyTest

java.lang.Object
ubic.gemma.rest.AnnotationSearchRankingStrategyTest

public class AnnotationSearchRankingStrategyTest extends Object
Pure-data tests for the three ranking strategies — no Spring, no Mockito beyond the input fixture. The fixture is the 435-hit staging snapshot of /annotations/search?query=chronic+itch captured in RECCE_ANNOTATION_SEARCH_RANKING.md.
  • Constructor Details

    • AnnotationSearchRankingStrategyTest

      public AnnotationSearchRankingStrategyTest()
  • Method Details

    • loadFixture

      @BeforeAll public static void loadFixture() throws IOException
      Throws:
      IOException
    • luceneOrder_keepsRawOrder

      @Test public void luceneOrder_keepsRawOrder()
    • usageWeighted_pullsHighUsageForward

      @Test public void usageWeighted_pullsHighUsageForward()
    • tokenCoverage_putsBothTokensFirst

      @Test public void tokenCoverage_putsBothTokensFirst()
    • tokenCoverage_handlesEmptyQuery

      @Test public void tokenCoverage_handlesEmptyQuery()
    • composite_pullsHighCoveragePlusHighUsageToTop

      @Test public void composite_pullsHighCoveragePlusHighUsageToTop()
    • composite_handlesEmptyUsageMap

      @Test public void composite_handlesEmptyUsageMap()
    • composite_handlesEmptyQuery

      @Test public void composite_handlesEmptyQuery()
    • composite_differsFromBothComponentsOnMixedSignal

      @Test public void composite_differsFromBothComponentsOnMixedSignal()
    • usageWeighted_neverDisplacesTheTopLexicalHit

      @Test public void usageWeighted_neverDisplacesTheTopLexicalHit()
    • composite_scoresCoverageAgainstTheMatchedSynonymNotJustTheLabel

      @Test public void composite_scoresCoverageAgainstTheMatchedSynonymNotJustTheLabel()
    • queryTokens_dropStopWordsThatCoverageWouldOtherwiseMatchAsSubstrings

      @Test public void queryTokens_dropStopWordsThatCoverageWouldOtherwiseMatchAsSubstrings()