Object DefaultResponseGenerator
-
- All Implemented Interfaces:
-
au.com.dius.pact.core.matchers.generators.MessageContentsGenerator,au.com.dius.pact.core.matchers.generators.ResponseGenerator,io.github.oshai.kotlinlogging.KLoggable
public class DefaultResponseGenerator extends KLogging implements ResponseGenerator, MessageContentsGenerator
-
-
Field Summary
Fields Modifier and Type Field Description private final KLoggerloggerpublic final static DefaultResponseGeneratorINSTANCE
-
Method Summary
Modifier and Type Method Description IResponsegenerateResponse(IResponse response, Map<String, Object> context, GeneratorTestMode testMode, List<PluginData> pluginData, Map<String, Map<String, JsonValue>> interactionData)Apply any generators to the response, creating a new response MessageContentsgenerateContents(MessageContents contents, Map<String, Object> context, GeneratorTestMode testMode, List<PluginData> pluginData, Map<String, Map<String, JsonValue>> interactionData, Boolean forRequest)Apply any generators to the message contents, creating new message content -
-
Method Detail
-
generateResponse
IResponse generateResponse(IResponse response, Map<String, Object> context, GeneratorTestMode testMode, List<PluginData> pluginData, Map<String, Map<String, JsonValue>> interactionData)
Apply any generators to the response, creating a new response
-
generateContents
MessageContents generateContents(MessageContents contents, Map<String, Object> context, GeneratorTestMode testMode, List<PluginData> pluginData, Map<String, Map<String, JsonValue>> interactionData, Boolean forRequest)
Apply any generators to the message contents, creating new message content
-
-
-
-