Class CommandFunctionToolsAdditionalTest

java.lang.Object
org.machanism.machai.ai.tools.CommandFunctionToolsAdditionalTest

class CommandFunctionToolsAdditionalTest extends Object
  • Field Details

    • tempDir

      @TempDir File tempDir
  • Constructor Details

    • CommandFunctionToolsAdditionalTest

      CommandFunctionToolsAdditionalTest()
  • Method Details

    • terminateProcess_whenMessageAndExitCode_throwsProcessTerminationException

      @Test void terminateProcess_whenMessageAndExitCode_throwsProcessTerminationException()
    • terminateProcess_whenCauseProvided_wrapsCause

      @Test void terminateProcess_whenCauseProvided_wrapsCause()
    • executeCommand_whenWorkingDirOutsideProject_returnsErrorMessage

      @Test void executeCommand_whenWorkingDirOutsideProject_returnsErrorMessage() throws Exception
      Throws:
      Exception
    • waitAndCollect_whenProcessFinishes_appendsExitCode

      @Test void waitAndCollect_whenProcessFinishes_appendsExitCode() throws Exception
      Throws:
      Exception
    • waitAndCollect_whenProcessTimesOut_destroysAndMentionsTimeout

      @Test void waitAndCollect_whenProcessTimesOut_destroysAndMentionsTimeout() throws Exception
      Throws:
      Exception