Kanzi  3.9.7
Java API
TestRuntime Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

TestRuntime ( Object  context)

Construct a TestRuntime object.

Typically, this is called in the setup of a test fixture.

Parameters
contextThe platform context (i.e. Android Application Context) or null if no context is needed.

Member Function Documentation

void close ( )

Close the TestRuntime object.

Typically, this is called in the teardown of a test fixture.

Domain getDomain ( )

Gets the Domain for the Test Environment.

Returns
The Test Environment Domain
Scene getScene ( )

Gets the Scene for the Test Environment.

Returns
The Test Environment Scene
Node2D getScreen ( )

Gets the Screen for the Test Environment.

Returns
The Test Environment Screen
static void LoadKanziLibraries ( )
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.