TestHost class

Inheritance

Constructors

TestHost(List<BaseService Function()> factories, {bool failWithServices = true, List<String> args = const <String>[], Map<String, dynamic> config = const <String, dynamic>{}})

Properties

failWithServices bool
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isInShutdown bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
servicesReady → Notifier
finalinherited

Methods

apiTest<T extends ApiService>(String name, FutureOr<void> body(RestClient client), {Timeout? timeout, Object? tags, Map<String, dynamic>? onPlatform, int? retry, Object? skip, String? testOn}) → void
Wrapper for defining api test bodies.
declare(void scaffold(TestHost host), {bool useCommonHost = false}) → void
getIsolatedHostConfiguration() IsolatedHostConfiguration
inherited
initialize() Future<void>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveService<TService extends BaseService?>() → TService
inherited
runAsService<T>(T delegate()) → T
inherited
setUp() Future<void>
shutdown() Future<void>
inherited
tearDown() Future<void>
test<T extends ApiService>(String name, FutureOr<void> body(), {Timeout? timeout, Object? tags, Map<String, dynamic>? onPlatform, int? retry, Object? skip, String? testOn}) → void
Wrapper for defining test bodies.
toString() String
A string representation of this object.
inherited

Operators

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