TestServiceExpectations class

Resolves state assertions through application capabilities or the standalone Ensemble harness.

Keeping this capability bridge separate from widget interaction makes the step executor responsible for dispatching steps while this class owns the service-versus-harness fallback rules.

Constructors

TestServiceExpectations({required ApplicationTestServices services, required AssertionEngine assertions, required EnsembleTestContext context, required bool hasHarness})
const

Properties

assertions → AssertionEngine
final
context → EnsembleTestContext
final
hasHarness → bool
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
services → ApplicationTestServices
final

Methods

clearStorage() → Future<void>
expectApiCalled(String name, int times) → void
expectApiCallOrder(List<String> names) → void
expectLastApiCall(String name) → void
expectNavigateTo(String screen) → void
expectStorage(String key, Object? expected) → void
expectVisited(String screen) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeStorage(OperationInput operation) → Future<void>
resetApiCalls() → void
setStorage(OperationInput operation) → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited