public abstract class DslToWireMockConverter extends Object implements StubGenerator
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, wait
canReadStubMapping, convertContents, fileExtension
public String generateOutputFileNameForInput(String inputFileName)
generateOutputFileNameForInput
in interface StubGenerator
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.json
public boolean canReadStubMapping(File mapping)
canReadStubMapping
in interface StubGenerator
mapping
- - potential stub mapping mappingtrue
if this converter could have generated this mapping stub.Copyright © 2016–2022 Spring. All rights reserved.