AFStateTest class

Inheritance

Constructors

AFStateTest({required AFStateTestID id, String? description, String? disabled, required AFStateTestID? idPredecessor, required AFStateTests tests})

Properties

currentStatements ↔ _AFStateExecutionConfiguration
getter/setter pair
description String?
finalinherited
disabled String?
finalinherited
extendedStatements → _AFStateExtendedExecutionConfiguration
final
hashCode int
The hash code for this object.
no setterinherited
id AFBaseTestID
finalinherited
idPredecessor AFStateTestID?
final
results Map<String, _AFStateResultEntry<AFAsyncQuery>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tests AFStateTests
final

Methods

defineDynamicCrossQueryResponse<TQuerySource extends AFAsyncQuery>(List<AFCreateQueryResultDelegate<AFAsyncQuery>> delegates, {Object? querySpecifier, Object? listenerSpecifier}) → void
defineQueryResponse<TQuery extends AFAsyncQuery>(dynamic querySpecifier, AFStateTestDefinitionContext definitions, dynamic idData) → void
defineQueryResponseDynamic<TQuery extends AFAsyncQuery>(dynamic querySpecifier, AFCreateQueryResultDelegate<TQuery> delegate) → void
defineQueryResponseError<TQuery extends AFAsyncQuery>(dynamic querySpecifier, AFStateTestDefinitionContext definitions, AFQueryError error) → void
defineQueryResponseLive<TQuery extends AFAsyncQuery>(dynamic querySpecifier, AFStateTestDefinitionContext definitions) → void
defineQueryResponseNone<TQuery extends AFAsyncQuery>(dynamic querySpecifier, AFStateTestDefinitionContext definitions) → void
defineQueryResponseNull<TQuery extends AFAsyncQuery>(dynamic querySpecifier, AFStateTestDefinitionContext definitions) → void
execute(AFStateTestContext context, {bool shouldVerify = true, AFStateTestID? upTo, AFStateTestID? continueFrom}) → void
Execute the test by kicking of its queries, then
executeAdvanceTime(Duration duration) → void
executeDebugStopHere() → void
executeInjectListenerQueryResponse(dynamic querySpecifier, Object result) → void
executeQuery(AFAsyncQuery query) → void
executeScreen<TSPI extends AFStateProgrammingInterface<AFComponentState, AFBuildContext<AFFlexibleStateView, AFRouteParam>, AFFunctionalTheme>>(AFScreenID screenId, AFStateTestScreenHandlerDelegate<TSPI> screenHandler, {required bool verifyIsActiveScreen}) → void
executeSetAbsoluteTime(DateTime time) → void
executeStartup() → void
executeVerifyState(AFStateTestVerifyStateDelegate verifyState) → void
extendsTest(AFStateTestID idTest) → void
hasPredecessor(AFStateTestID desiredId) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerCrossResult(dynamic querySpecifier, dynamic listenerSpecifier, AFProcessQueryDelegate<AFAsyncQuery>? handler) → void
registerResult<TQuery extends AFAsyncQuery>(dynamic querySpecifier, AFProcessQueryDelegate<TQuery> handler) → void
specifySecondaryError<TQuery extends AFAsyncQuery>(dynamic querySpecifier, dynamic error) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

processQuery(AFStateTestContext context, AFAsyncQuery query, AFStore store, AFDispatcher dispatcher) → void
Process a query by looking up the results we have for that query, and then feeding them to its testAsyncResponse method.
specifierToId(dynamic querySpecifier) String