Package com.valhalla.sdk.testing
Class FakeClient
java.lang.Object
com.valhalla.sdk.testing.FakeClient
Instance-based offline model of the session facts exposed by
Client.
It intentionally does not replace the static native Client
facade. Pass it to extracted decision code in JVM tests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionReady(boolean value) Sets fake action readiness.Returns immutable advertised fake capabilities.getVarp(int id) Reads one fake client varp.booleanReturns whether the fake runtime accepts actions.booleanReturns whether the fake session is logged in.booleanisTileLoaded(Tile tile) Tests whether a tile belongs to the fake 104x104 loaded scene.loggedIn(boolean value) Sets fake login state.Returns the fake southwest scene base.Sets the fake southwest scene base.Adds one advertised fake capability.booleanTests one fake capability.varp(int id, int value) Defines one fake client varp.withdrawSupport(String capability) Removes one advertised fake capability.
-
Constructor Details
-
FakeClient
public FakeClient()
-
-
Method Details
-
isLoggedIn
public boolean isLoggedIn()Returns whether the fake session is logged in. -
loggedIn
Sets fake login state. -
isActionReady
public boolean isActionReady()Returns whether the fake runtime accepts actions. -
actionReady
Sets fake action readiness. -
capabilities
Returns immutable advertised fake capabilities. -
support
Adds one advertised fake capability. -
withdrawSupport
Removes one advertised fake capability. -
supports
Tests one fake capability. -
varp
Defines one fake client varp. -
getVarp
Reads one fake client varp. -
sceneBase
Returns the fake southwest scene base. -
sceneBase
Sets the fake southwest scene base. -
isTileLoaded
Tests whether a tile belongs to the fake 104x104 loaded scene.
-