ServerTester class
Tests a jaspr app in a simulated server environment.
You can send requests using the request or fetchData methods and evaluate the server-rendered response for the given url.
Properties
- app ↔ ServerApp
-
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
fetchData(
String location) → Future< DataResponse> - Perform a virtual data request to your app that collects all the sync-data from the rendered components.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pumpComponent(
Component component) → void -
request(
String location) → Future< DocumentResponse> - Perform a virtual request to your app that renders the components and returns the resulting document.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited