use of mockit.FullVerifications in project swagger-parser by swagger-api.
the class ResponseProcessorTest method testProcessResponse.
@Test
public void testProcessResponse(@Injectable final Model responseSchema, @Injectable final Property responseHeader) throws Exception {
new StrictExpectations() {
{
new ModelProcessor(cache, swagger);
times = 1;
result = modelProcessor;
modelProcessor.processModel(responseSchema);
times = 1;
}
};
Response response = new Response();
response.setResponseSchema(responseSchema);
response.addHeader("foo", responseHeader);
new ResponseProcessor(cache, swagger).processResponse(response);
new FullVerifications() {
{
}
};
}
Aggregations