PactRepository class

Holder for pacts in their builder form.

Can merge several builders into a single Pact with all the combined interactions

Constructors

PactRepository({bool requireTests = true})

Properties

hashCode int
The hash code for this object.
no setterinherited
requireTests bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(PactBuilder builder) → void
Adds all the request-response pairs as interactions in a Pact structure.
getPactFile(String consumer, String provider) String?
Gets a pact file in JSON format
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publish(PactHost host, String version) Future<void>
Publishes all pacts onto a host with tagging a specific version
toString() String
A string representation of this object.
inherited

Operators

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