Package org.machanism.machai.ai.none
Class NoneProviderTest
java.lang.Object
org.machanism.machai.ai.none.NoneProviderTest
Unit tests for
NoneProvider.
Ensures all methods follow the expected stub behavior, no-ops, or defined exception throwing in this placeholder provider.
- Since:
- 0.0.2
- Author:
- Viktor Tovstyi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidsetUp()Initializes a newNoneProviderbefore each test.(package private) voidtearDown()Clears provider state after each test.(package private) voidTests that addFile methods are no-ops and do not throw.(package private) voidTests that clear resets prompts.(package private) voidTests that embedding throws IllegalArgumentException.(package private) voidTests that inputsLog sets the file and prompts are written to file.(package private) voidTests that instructions are stored, prompts are written to file if inputsLog is set.(package private) voidTests that model method is a no-op.(package private) voidTests that prompt appends text and perform returns null.(package private) voidTests that promptFile is a no-op and does not throw exception.
-
Constructor Details
-
NoneProviderTest
NoneProviderTest()
-
-
Method Details
-
setUp
@BeforeEach void setUp()Initializes a newNoneProviderbefore each test. -
tearDown
@AfterEach void tearDown()Clears provider state after each test. -
testPromptAppendsText
@Test void testPromptAppendsText()Tests that prompt appends text and perform returns null. -
testClearResetsPrompts
@Test void testClearResetsPrompts()Tests that clear resets prompts. -
testInstructionsStoresText
@Test void testInstructionsStoresText()Tests that instructions are stored, prompts are written to file if inputsLog is set. -
testEmbeddingThrows
@Test void testEmbeddingThrows()Tests that embedding throws IllegalArgumentException. -
testAddFileMethodsAreNoOps
-
testPromptFileIsNoOp
-
testInputsLogSetsFile
@Test void testInputsLogSetsFile()Tests that inputsLog sets the file and prompts are written to file. -
testModelIsNoOp
@Test void testModelIsNoOp()Tests that model method is a no-op.
-