Class PickerTest

java.lang.Object
org.machanism.machai.bindex.PickerTest

class PickerTest extends Object
Unit tests for Picker that avoid any real MongoDB/GenAI calls.
  • Constructor Details

    • PickerTest

      PickerTest()
  • Method Details

    • getNormalizedLanguageName_shouldLowercaseTrimAndStripParentheses

      @Test void getNormalizedLanguageName_shouldLowercaseTrimAndStripParentheses()
    • getNormalizedLanguageName_shouldHandleAlreadyNormalized

      @Test void getNormalizedLanguageName_shouldHandleAlreadyNormalized()
    • setScoreAndGetScore_shouldStoreAndReturnScoresFromMap

      @Test void setScoreAndGetScore_shouldStoreAndReturnScoresFromMap() throws Exception
      Throws:
      Exception
    • addDependencies_shouldAddTransitiveDependenciesAndAvoidCycles

      @Test void addDependencies_shouldAddTransitiveDependenciesAndAvoidCycles()
    • addDependencies_shouldIgnoreUnknownBindexId

      @Test void addDependencies_shouldIgnoreUnknownBindexId()
    • getEmbeddingBson_shouldValidateArguments

      @Test void getEmbeddingBson_shouldValidateArguments() throws Exception
      Throws:
      Exception