public class OpenAPIExpectationSerializer extends Object implements Serializer<OpenAPIExpectation>
Constructor and Description |
---|
OpenAPIExpectationSerializer(MockServerLogger mockServerLogger) |
Modifier and Type | Method and Description |
---|---|
OpenAPIExpectation |
deserialize(String jsonOpenAPIExpectation) |
OpenAPIExpectation[] |
deserializeArray(String jsonOpenAPIExpectations,
boolean allowEmpty) |
List<Expectation> |
deserializeToExpectations(String jsonOpenAPIExpectation) |
String |
serialize(List<OpenAPIExpectation> expectations) |
String |
serialize(OpenAPIExpectation... expectations) |
String |
serialize(OpenAPIExpectation expectation) |
Class<OpenAPIExpectation> |
supportsType() |
public OpenAPIExpectationSerializer(MockServerLogger mockServerLogger)
public String serialize(OpenAPIExpectation expectation)
serialize
in interface Serializer<OpenAPIExpectation>
public String serialize(List<OpenAPIExpectation> expectations)
public String serialize(OpenAPIExpectation... expectations)
public OpenAPIExpectation deserialize(String jsonOpenAPIExpectation)
deserialize
in interface Serializer<OpenAPIExpectation>
public List<Expectation> deserializeToExpectations(String jsonOpenAPIExpectation)
public Class<OpenAPIExpectation> supportsType()
supportsType
in interface Serializer<OpenAPIExpectation>
public OpenAPIExpectation[] deserializeArray(String jsonOpenAPIExpectations, boolean allowEmpty)
Copyright © 2022. All rights reserved.