Class BindexBuilderAdditionalTest

java.lang.Object
org.machanism.machai.bindex.builder.BindexBuilderAdditionalTest

class BindexBuilderAdditionalTest extends Object
Additional tests around BindexBuilder.

Note: the production BindexBuilder class is not part of this module anymore, but some downstream modules still carry these tests. We keep this test class compiling by using reflection + a local minimal stub.

  • Field Details

    • tempDir

      @TempDir File tempDir
  • Constructor Details

    • BindexBuilderAdditionalTest

      BindexBuilderAdditionalTest()
  • Method Details

    • isLogInputs_and_logInputs_roundTrip

      @Test void isLogInputs_and_logInputs_roundTrip()
    • build_whenProviderReturnsNull_returnsNull

      @Test void build_whenProviderReturnsNull_returnsNull() throws Exception
      Throws:
      Exception
    • build_whenOutputIsJsonFencedCodeBlock_stripsFenceAndParses

      @Test void build_whenOutputIsJsonFencedCodeBlock_stripsFenceAndParses() throws Exception
      Throws:
      Exception
    • build_whenOriginProvided_includesUpdatePromptAndLogsInputsWhenEnabled

      @Test void build_whenOriginProvided_includesUpdatePromptAndLogsInputsWhenEnabled() throws Exception
      Throws:
      Exception
    • promptFile_whenBundleMessageNameNull_returnsRawFileData

      @Test void promptFile_whenBundleMessageNameNull_returnsRawFileData() throws Exception
      Throws:
      Exception
    • promptFile_whenBundleMessageNameUnknown_throwsMissingResourceException

      @Test void promptFile_whenBundleMessageNameUnknown_throwsMissingResourceException() throws Exception
      Throws:
      Exception
    • getOrigin_and_origin_roundTrip

      @Test void getOrigin_and_origin_roundTrip()
    • getProjectLayout_returnsProvidedLayout

      @Test void getProjectLayout_returnsProvidedLayout()
    • getGenAIProvider_returnsProvider

      @Test void getGenAIProvider_returnsProvider()