Class SnapshotStubMappingPostProcessor
- java.lang.Object
-
- com.github.tomakehurst.wiremock.recording.SnapshotStubMappingPostProcessor
-
public class SnapshotStubMappingPostProcessor extends java.lang.Object
Performs stateful post-processing tasks on stub mappings generated from ServeEvents: 1. Detect duplicate requests and either discard them or turn them into scenarios 2. Extract response bodies to a separate file, if applicable 3. Run any applicable StubMappingTransformers against the stub mappings
-
-
Constructor Summary
Constructors Constructor Description SnapshotStubMappingPostProcessor(boolean shouldRecordRepeatsAsScenarios, SnapshotStubMappingTransformerRunner transformerRunner, ResponseDefinitionBodyMatcher bodyExtractMatcher, SnapshotStubMappingBodyExtractor bodyExtractor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<StubMapping>
process(java.lang.Iterable<StubMapping> stubMappings)
-
-
-
Constructor Detail
-
SnapshotStubMappingPostProcessor
public SnapshotStubMappingPostProcessor(boolean shouldRecordRepeatsAsScenarios, SnapshotStubMappingTransformerRunner transformerRunner, ResponseDefinitionBodyMatcher bodyExtractMatcher, SnapshotStubMappingBodyExtractor bodyExtractor)
-
-
Method Detail
-
process
public java.util.List<StubMapping> process(java.lang.Iterable<StubMapping> stubMappings)
-
-