Class BindexFunctionToolsTest

java.lang.Object
org.machanism.machai.bindex.ai.tools.BindexFunctionToolsTest

class BindexFunctionToolsTest extends Object
  • Constructor Details

    • BindexFunctionToolsTest

      BindexFunctionToolsTest()
  • Method Details

    • applyTools_registersAllExpectedTools

      @Test void applyTools_registersAllExpectedTools()
    • getBindex_returnsSerializedJsonWhenRepositoryFindsBindex

      @Test void getBindex_returnsSerializedJsonWhenRepositoryFindsBindex() throws Exception
      Throws:
      Exception
    • getBindex_returnsNotFoundMarkerWhenRepositoryDoesNotFindBindex

      @Test void getBindex_returnsNotFoundMarkerWhenRepositoryDoesNotFindBindex() throws Exception
      Throws:
      Exception
    • getBindexSchema_returnsSchemaContent

      @Test void getBindexSchema_returnsSchemaContent() throws Exception
      Throws:
      Exception
    • setConfigurator_storesConfiguratorReference

      @Test void setConfigurator_storesConfiguratorReference() throws Exception
      Throws:
      Exception
    • bindexElement_accessorsAndToString_workAsExpected

      @Test void bindexElement_accessorsAndToString_workAsExpected()
    • getRecommendedLibraries_returnsMappedElementsFromPickerResults

      @Test void getRecommendedLibraries_returnsMappedElementsFromPickerResults() throws Exception
      Throws:
      Exception
    • registerBindex_returnsRecordIdWhenFileExistsAndCreationSucceeds

      @Test void registerBindex_returnsRecordIdWhenFileExistsAndCreationSucceeds(@TempDir File tempDir) throws Exception
      Throws:
      Exception
    • registerBindex_returnsFileNotFoundWhenRequestedFileDoesNotExist

      @Test void registerBindex_returnsFileNotFoundWhenRequestedFileDoesNotExist(@TempDir File tempDir) throws Exception
      Throws:
      Exception
    • registerBindex_returnsErrorWhenReadingFileFails

      @Test void registerBindex_returnsErrorWhenReadingFileFails(@TempDir File tempDir) throws Exception
      Throws:
      Exception
    • getBindexRepository_createsRepositoryLazilyAndCachesIt

      @Test void getBindexRepository_createsRepositoryLazilyAndCachesIt() throws Exception
      Throws:
      Exception