Class AnnotationSearchRankingStrategyTest
java.lang.Object
ubic.gemma.rest.AnnotationSearchRankingStrategyTest
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidstatic voidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
AnnotationSearchRankingStrategyTest
public AnnotationSearchRankingStrategyTest()
-
-
Method Details
-
loadFixture
- 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()
-