Search in sources :

Example 11 with ModelConverterContextImpl

use of io.swagger.converter.ModelConverterContextImpl in project swagger-core by swagger-api.

the class InheritedBeanTest method setup.

@BeforeTest
public void setup() {
    modelResolver = new ModelResolver(new ObjectMapper());
    context = new ModelConverterContextImpl(modelResolver);
}
Also used : ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) ModelConverterContextImpl(io.swagger.converter.ModelConverterContextImpl) BeforeTest(org.testng.annotations.BeforeTest)

Aggregations

ModelConverterContextImpl (io.swagger.converter.ModelConverterContextImpl)11 Model (io.swagger.models.Model)10 Test (org.testng.annotations.Test)10 Property (io.swagger.models.properties.Property)7 ArrayProperty (io.swagger.models.properties.ArrayProperty)6 ModelConverter (io.swagger.converter.ModelConverter)4 ApiModel (io.swagger.annotations.ApiModel)3 ModelImpl (io.swagger.models.ModelImpl)3 Xml (io.swagger.models.Xml)3 MapProperty (io.swagger.models.properties.MapProperty)3 JsonProperty (com.fasterxml.jackson.annotation.JsonProperty)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 ApiModelProperty (io.swagger.annotations.ApiModelProperty)1 StringProperty (io.swagger.models.properties.StringProperty)1 ArrayList (java.util.ArrayList)1 Map (java.util.Map)1 BeforeTest (org.testng.annotations.BeforeTest)1