public abstract class DslToWireMockConverter extends Object implements StubGenerator<com.github.tomakehurst.wiremock.stubbing.StubMapping>
StubGenerator.| Constructor and Description |
|---|
DslToWireMockConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReadStubMapping(File mapping) |
String |
generateOutputFileNameForInput(String inputFileName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertContents, defaultStubMappingPostProcessing, fileExtension, postProcessStubMappingpublic String generateOutputFileNameForInput(String inputFileName)
generateOutputFileNameForInput in interface StubGenerator<com.github.tomakehurst.wiremock.stubbing.StubMapping>inputFileName - - name of the input fileContract.getName() field then that field will override the generated file
name.
Example: name of file with 2 contracts is foo.groovy, it will be converted
by the implementation to foo.json. The recursive file converter will create
two files 0_foo.json and 1_foo.jsonpublic boolean canReadStubMapping(File mapping)
canReadStubMapping in interface StubGenerator<com.github.tomakehurst.wiremock.stubbing.StubMapping>mapping - - potential stub mapping mappingtrue if this converter could have generated this mapping stub.Copyright © 2016–2020 Spring. All rights reserved.