public class ExpectationSerializer extends Object implements Serializer<Expectation>
Constructor and Description |
---|
ExpectationSerializer(MockServerLogger mockServerLogger) |
Modifier and Type | Method and Description |
---|---|
Expectation |
deserialize(String jsonExpectation) |
Expectation[] |
deserializeArray(String jsonExpectations) |
String |
serialize(Expectation... expectations) |
String |
serialize(Expectation expectation) |
String |
serialize(List<Expectation> expectations) |
Class<Expectation> |
supportsType() |
public ExpectationSerializer(MockServerLogger mockServerLogger)
public String serialize(Expectation expectation)
serialize
in interface Serializer<Expectation>
public String serialize(List<Expectation> expectations)
public String serialize(Expectation... expectations)
public Expectation deserialize(String jsonExpectation)
deserialize
in interface Serializer<Expectation>
public Class<Expectation> supportsType()
supportsType
in interface Serializer<Expectation>
public Expectation[] deserializeArray(String jsonExpectations)
Copyright © 2018. All rights reserved.