Package com.avoka.fc.core.test.func
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AppPkgTestRunner.ConfigException
Provides a configuration exception.
-
Constructor Summary
Constructors Constructor Description AppPkgTestRunner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Result>
run()
Run the test file and return a test result object.AppPkgTestRunner
setAppPkgFile(File appPkgFile)
Set the application package ZIP fileAppPkgTestRunner
setConsoleLogging(boolean consoleLogging)
Set whether console logging enabled.AppPkgTestRunner
setLogOnError(boolean logOnError)
Enable console logging when an assertion error occurs.AppPkgTestRunner
setMockEntityService(MockEntityService mockEntityService)
Set the mock entity serviceAppPkgTestRunner
setTestFile(File testFile)
Set the JSON test description file.
-
-
-
Method Detail
-
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
public List<Result> run() throws AppPkgTestRunner.ConfigException
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
-
-