Package com.avoka.fc.core.test.func
Class AppPkgTestRunner
java.lang.Object
com.avoka.fc.core.test.func.AppPkgTestRunner
Provides a FormCommandHander Test Runner class.
- Since:
- 17.10.0
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Provides a configuration exception. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionrun()
Run the test file and return a test result object.setAppPkgFile
(File appPkgFile) Set the application package ZIP filesetConsoleLogging
(boolean consoleLogging) Set whether console logging enabled.setLogOnError
(boolean logOnError) Enable console logging when an assertion error occurs.setMockEntityService
(MockEntityService mockEntityService) Set the mock entity servicesetTestFile
(File testFile) Set the JSON test description file.
-
Constructor Details
-
AppPkgTestRunner
public AppPkgTestRunner()
-
-
Method Details
-
setConsoleLogging
Set whether console logging enabled.- Parameters:
consoleLogging
- set whether console logging is enabled.- Returns:
- this test runner
-
setLogOnError
Enable console logging when an assertion error occurs.- Parameters:
logOnError
- set whether console logging is enabled.- Returns:
- this test runner
-
setAppPkgFile
Set the application package ZIP file- Parameters:
appPkgFile
- the application package ZIP file (required)- Returns:
- this test runner
-
setMockEntityService
Set the mock entity service- Parameters:
mockEntityService
- the mock entity service (required)- Returns:
- this test runner
-
setTestFile
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
-