TestCase class
TestCase messages provide the request context and an expectation as to
whether the given context will be allowed or denied.
Test cases may specify the request, resource, and function_mocks to
mock a function call to a service-provided function. The request object
represents context present at request-time. The resource is the value of
the target resource as it appears in persistent storage before the request
is executed.
Constructors
-
TestCase({String? expectation, String? expressionReportLevel, List<
FunctionMock> ? functionMocks, String? pathEncoding, Object? request, Object? resource}) - TestCase.fromJson(Map json_)
Properties
- expectation ↔ String?
-
Test expectation.
Possible string values are:
getter/setter pair
- expressionReportLevel ↔ String?
-
Specifies what should be included in the response.
Possible string values are:
getter/setter pair
-
functionMocks
↔ List<
FunctionMock> ? -
Optional function mocks for service-defined functions.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- pathEncoding ↔ String?
-
Specifies whether paths (such as request.path) are encoded and how.
Possible string values are:
getter/setter pair
- request ↔ Object?
-
Request context.
getter/setter pair
- resource ↔ Object?
-
Optional resource value as it appears in persistent storage before the
request is fulfilled.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited