FakeStem class

Test helper that records enqueue calls without publishing to a broker.

Constructors

FakeStem()
Creates an empty fake Stem instance for tests.

Properties

enqueues List<RecordedEnqueue>
All enqueued tasks captured so far.
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

enqueue(String name, {Map<String, Object?> args = const {}, Map<String, String> headers = const {}, TaskOptions options = const TaskOptions(), DateTime? notBefore, Map<String, Object?> meta = const {}}) Future<String>
Mimics Stem.enqueue for map-based usage.
enqueueCall<TArgs, TResult>(TaskCall<TArgs, TResult> call) Future<String>
Mimics Stem.enqueueCall and records the request.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Clears recorded enqueue history.
toString() String
A string representation of this object.
inherited

Operators

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