Package org.machanism.machai.ai.web
Class WebProviderTest
java.lang.Object
org.machanism.machai.ai.web.WebProviderTest
Unit tests for
WebProvider.
Validates AE workspace integration, configuration handling, and core error conditions
of the WebProvider class.
<code>
WebProvider provider = new WebProvider();
provider.model("CodeMie");
provider.setWorkingDir(new File("/tmp/test"));
String result = provider.perform();
</code>
- Since:
- 0.0.2
- Author:
- Viktor Tovstyi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidValidates that calling model() with the same config name reports configuration change error.(package private) voidExample test for perform().(package private) voidVerifies that setWorkingDir throws IllegalArgumentException if configuration or AE setup node initialization fails.
-
Constructor Details
-
WebProviderTest
WebProviderTest()
-
-
Method Details
-
testSetWorkingDir_exception
@Test void testSetWorkingDir_exception()Verifies that setWorkingDir throws IllegalArgumentException if configuration or AE setup node initialization fails. -
testModel_duplicateConfigName_throws
@Test void testModel_duplicateConfigName_throws()Validates that calling model() with the same config name reports configuration change error. -
testPerform_runsRecipe
@Test @Disabled("Perform logic requires live AEWorkspace and configuration.") void testPerform_runsRecipe()Example test for perform(). Should only be enabled if AEWorkspace is configured.
-