Class SynchronousMessageBuilder
-
- All Implemented Interfaces:
-
au.com.dius.pact.consumer.dsl.DslBuilder
public class SynchronousMessageBuilder implements DslBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSynchronousMessageBuilder.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Map<String, Map<String, JsonValue>>pluginConfigurationpublic final static SynchronousMessageBuilder.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description SynchronousMessageBuilder(String description, String key, List<ProviderState> providerStates)
-
Method Summary
Modifier and Type Method Description final Map<String, Map<String, JsonValue>>getPluginConfiguration()V4Interaction.SynchronousMessagesbuild()final SynchronousMessageBuildercomment(String comment)Adds a comment to message interaction final SynchronousMessageBuildertestname(String testname)Sets the name of the test final SynchronousMessageBuilderinteractionPending(Boolean pending)If this interaction should be marked as pending final SynchronousMessageBuilderwithRequest(Closure<Object> callback)Build the request part of the message final SynchronousMessageBuilderwithResponse(Closure<Object> callback)Build the response part of the message final SynchronousMessageBuilderwithPluginConfig(Map<String, Object> values)Values to configure the interaction with. UnitaddPluginConfiguration(ContentMatcher matcher, Map<String, JsonValue> pactConfiguration)-
-
Method Detail
-
getPluginConfiguration
final Map<String, Map<String, JsonValue>> getPluginConfiguration()
-
build
V4Interaction.SynchronousMessages build()
-
comment
final SynchronousMessageBuilder comment(String comment)
Adds a comment to message interaction
-
testname
final SynchronousMessageBuilder testname(String testname)
Sets the name of the test
-
interactionPending
final SynchronousMessageBuilder interactionPending(Boolean pending)
If this interaction should be marked as pending
-
withRequest
final SynchronousMessageBuilder withRequest(Closure<Object> callback)
Build the request part of the message
-
withResponse
final SynchronousMessageBuilder withResponse(Closure<Object> callback)
Build the response part of the message
-
withPluginConfig
final SynchronousMessageBuilder withPluginConfig(Map<String, Object> values)
Values to configure the interaction with. This will send the configuration through to the plugin to setup the interaction.
-
addPluginConfiguration
Unit addPluginConfiguration(ContentMatcher matcher, Map<String, JsonValue> pactConfiguration)
-
-
-
-