The TestRuntime class provides access to a testing environment including a Kanzi Domain. More...
Public Member Functions | |
TestRuntime (Object context) | |
Construct a TestRuntime object. More... | |
void | close () |
Close the TestRuntime object. More... | |
void | generateTouchClick (float x, float y) |
Domain | getDomain () |
Gets the Domain for the Test Environment. More... | |
Scene | getScene () |
Gets the Scene for the Test Environment. More... | |
Node2D | getScreen () |
Gets the Screen for the Test Environment. More... | |
void | reloadGPUResources () |
Trigger a reload of GPU Resources. | |
Static Public Member Functions | |
static void | LoadKanziLibraries () |
Load the native Kanzi libraries. More... | |
The TestRuntime class provides access to a testing environment including a Kanzi Domain.
It is only intended to be used for non-production testing purposes.
TestRuntime | ( | Object | context | ) |
Construct a TestRuntime object.
Typically, this is called in the setup of a test fixture.
context | The platform context (i.e. Android Application Context) or null if no context is needed. |
void close | ( | ) |
Close the TestRuntime object.
Typically, this is called in the teardown of a test fixture.
|
static |
Load the native Kanzi libraries.
Typically, this is called in a static block of a test fixture. It is only intended to be used for non-production testing purposes.