Class AppPkgTestRunner

java.lang.Object
com.avoka.fc.core.test.func.AppPkgTestRunner

public class AppPkgTestRunner extends Object
Provides a FormCommandHander Test Runner class.
Since:
17.10.0
  • Constructor Details

    • AppPkgTestRunner

      public AppPkgTestRunner()
  • Method Details

    • setConsoleLogging

      public AppPkgTestRunner setConsoleLogging(boolean consoleLogging)
      Set whether console logging enabled.
      Parameters:
      consoleLogging - set whether console logging is enabled.
      Returns:
      this test runner
    • setLogOnError

      public AppPkgTestRunner setLogOnError(boolean logOnError)
      Enable console logging when an assertion error occurs.
      Parameters:
      logOnError - set whether console logging is enabled.
      Returns:
      this test runner
    • setAppPkgFile

      public AppPkgTestRunner setAppPkgFile(File appPkgFile)
      Set the application package ZIP file
      Parameters:
      appPkgFile - the application package ZIP file (required)
      Returns:
      this test runner
    • setMockEntityService

      public AppPkgTestRunner setMockEntityService(MockEntityService mockEntityService)
      Set the mock entity service
      Parameters:
      mockEntityService - the mock entity service (required)
      Returns:
      this test runner
    • setTestFile

      public AppPkgTestRunner setTestFile(File testFile)
      Set the JSON test description file.
      Parameters:
      testFile - the JSON test description file.
      Returns:
      this test runner
    • run

      Run the test file and return a test result object.
      Returns:
      run the test file and return a test result object
      Throws:
      AppPkgTestRunner.ConfigException - if an test suite configuration error occurs and the test is not run