Package org.machanism.machai.bindex
Class ApplicationAssemblyTest
java.lang.Object
org.machanism.machai.bindex.ApplicationAssemblyTest
Unit tests for
ApplicationAssembly.
Tests the project directory setter, successful assembly execution, and exception handling.
- Author:
- Viktor Tovstyi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidsetUp()Set up mocks and fixture for each test.(package private) voidTests thatApplicationAssembly.assembly(String, List)executes without throwing exceptions when provider.perform() returns a response.(package private) voidTests thatApplicationAssembly.assembly(String, List)throws IllegalArgumentException when provider.perform() throws an IOException.(package private) voidVerifies thatApplicationAssembly.projectDir(File)returns this and sets the directory.
-
Constructor Details
-
ApplicationAssemblyTest
ApplicationAssemblyTest()
-
-
Method Details
-
setUp
@BeforeEach void setUp()Set up mocks and fixture for each test. -
testProjectDirSetterReturnsSelfAndSetsDir
@Test void testProjectDirSetterReturnsSelfAndSetsDir()Verifies thatApplicationAssembly.projectDir(File)returns this and sets the directory. -
testAssemblyExecutesLLMAndLogsResponse
Tests thatApplicationAssembly.assembly(String, List)executes without throwing exceptions when provider.perform() returns a response.- Throws:
IOException- if provider.perform() throws
-
testAssemblyThrowsOnIOException
Tests thatApplicationAssembly.assembly(String, List)throws IllegalArgumentException when provider.perform() throws an IOException.- Throws:
IOException
-