public class PactWriter
Class to write out a pact to a file
| Modifier and Type | Field and Description |
|---|---|
static PactWriter |
INSTANCE
Class to write out a pact to a file
|
| Modifier and Type | Method and Description |
|---|---|
static <I extends Interaction> |
writePact(Pact<I> pact,
java.io.PrintWriter writer,
PactSpecVersion pactSpecVersion)
Writes out the pact to the provided pact file
|
static <I extends Interaction> |
writePact(Pact<I> pact,
java.io.PrintWriter writer)
Writes out the pact to the provided pact file
|
static <I extends Interaction> |
writePact(java.io.File pactFile,
Pact<I> pact,
PactSpecVersion pactSpecVersion)
Writes out the pact to the provided pact file in a manor that is safe for parallel execution
|
public static PactWriter INSTANCE
Class to write out a pact to a file
public static <I extends Interaction> void writePact(Pact<I> pact, java.io.PrintWriter writer, PactSpecVersion pactSpecVersion)
Writes out the pact to the provided pact file
pact - Pact to writewriter - Writer to write out withpactSpecVersion - Pact version to use to control writingpublic static <I extends Interaction> void writePact(Pact<I> pact, java.io.PrintWriter writer)
Writes out the pact to the provided pact file
pact - Pact to writewriter - Writer to write out withpublic static <I extends Interaction> void writePact(java.io.File pactFile, Pact<I> pact, PactSpecVersion pactSpecVersion)
Writes out the pact to the provided pact file in a manor that is safe for parallel execution
pactFile - File to write topact - Pact to writepactSpecVersion - Pact version to use to control writing