Search in sources :

Example 6 with SpringmvcSwaggerGenerator

use of org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGenerator in project incubator-servicecomb-java-chassis by apache.

the class TestSchemaMetaCodec method testProtoSchemaOperationUserSpringMVC.

@Test
public void testProtoSchemaOperationUserSpringMVC() throws Exception {
    mockSchemaMeta("ProtoSchema", new SpringmvcSwaggerGenerator(ProtoSchema.class), new ProtoSchema());
    testProtoSchemaOperationUserImpl();
}
Also used : ProtoSchema(org.apache.servicecomb.codec.protobuf.internal.converter.model.ProtoSchema) SpringmvcSwaggerGenerator(org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGenerator) Test(org.junit.Test)

Example 7 with SpringmvcSwaggerGenerator

use of org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGenerator in project java-chassis by ServiceComb.

the class TestSchemaMetaCodec method testProtoSchemaOperationlistListUserSpringMVC.

@Test
public void testProtoSchemaOperationlistListUserSpringMVC() throws Exception {
    mockSchemaMeta("ProtoSchema", new SpringmvcSwaggerGenerator(ProtoSchema.class), new ProtoSchema());
    testProtoSchemaOperationlistListUserImpl(false);
}
Also used : ProtoSchema(org.apache.servicecomb.codec.protobuf.internal.converter.model.ProtoSchema) SpringmvcSwaggerGenerator(org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGenerator) Test(org.junit.Test)

Example 8 with SpringmvcSwaggerGenerator

use of org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGenerator in project java-chassis by ServiceComb.

the class TestSchemaMetaCodec method testProtoSchemaOperationUserSpringMVC.

@Test
public void testProtoSchemaOperationUserSpringMVC() throws Exception {
    mockSchemaMeta("ProtoSchema", new SpringmvcSwaggerGenerator(ProtoSchema.class), new ProtoSchema());
    testProtoSchemaOperationUserImpl();
}
Also used : ProtoSchema(org.apache.servicecomb.codec.protobuf.internal.converter.model.ProtoSchema) SpringmvcSwaggerGenerator(org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGenerator) Test(org.junit.Test)

Example 9 with SpringmvcSwaggerGenerator

use of org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGenerator in project java-chassis by ServiceComb.

the class TestSchemaMetaCodec method testProtoSchemaOperationmapUserSpringMVC.

@Test
public void testProtoSchemaOperationmapUserSpringMVC() throws Exception {
    mockSchemaMeta("ProtoSchema", new SpringmvcSwaggerGenerator(ProtoSchema.class), new ProtoSchema());
    testProtoSchemaOperationmapUserImpl(false);
}
Also used : ProtoSchema(org.apache.servicecomb.codec.protobuf.internal.converter.model.ProtoSchema) SpringmvcSwaggerGenerator(org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGenerator) Test(org.junit.Test)

Example 10 with SpringmvcSwaggerGenerator

use of org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGenerator in project java-chassis by ServiceComb.

the class TestSchemaMetaCodec method testProtoSchemaOperationObjSpringMVC.

@Test
public void testProtoSchemaOperationObjSpringMVC() throws Exception {
    mockSchemaMeta("ProtoSchema", new SpringmvcSwaggerGenerator(ProtoSchema.class), new ProtoSchema());
    testProtoSchemaOperationObjImpl(false);
}
Also used : ProtoSchema(org.apache.servicecomb.codec.protobuf.internal.converter.model.ProtoSchema) SpringmvcSwaggerGenerator(org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGenerator) Test(org.junit.Test)

Aggregations

SpringmvcSwaggerGenerator (org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGenerator)14 ProtoSchema (org.apache.servicecomb.codec.protobuf.internal.converter.model.ProtoSchema)12 Test (org.junit.Test)12 Swagger (io.swagger.models.Swagger)4 Proto (io.protostuff.compiler.model.Proto)2 URL (java.net.URL)2 Expectations (mockit.Expectations)2 OperationMeta (org.apache.servicecomb.core.definition.OperationMeta)2 SchemaMeta (org.apache.servicecomb.core.definition.SchemaMeta)2 SwaggerEnvironment (org.apache.servicecomb.swagger.engine.SwaggerEnvironment)2 SwaggerProducer (org.apache.servicecomb.swagger.engine.SwaggerProducer)2 SwaggerProducerOperation (org.apache.servicecomb.swagger.engine.SwaggerProducerOperation)2 Before (org.junit.Before)2