RemoteAdapterHarness class abstract
Couples a RemoteSyncAdapter under test to the backend it talks to, so the contract can both drive the adapter and inspect/seed that backend directly.
Implement this for your custom adapter (e.g. wrap a MockClient over an
in-memory map, or point at a disposable test database), then hand it to
runRemoteSyncAdapterContract.
Constructors
Properties
- adapter → RemoteSyncAdapter
-
The adapter under test, already wired to the backend.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
backendRows(
String table) → Future< List< Map< >String, dynamic> > -
Returns the backend's current rows for
table, so the contract can verify that pushes actually landed. -
dispose(
) → Future< void> - Releases resources (close HTTP clients, drop test data, …).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
seed(
String table, List< Map< rows) → Future<String, dynamic> >void> -
Writes
rowsstraight into the backend, bypassing the adapter — used to set up pull-side scenarios. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited