Search in sources :

Example 1 with ProtoSchema

use of org.apache.servicecomb.codec.protobuf.internal.converter.model.ProtoSchema in project java-chassis by ServiceComb.

the class TestSchemaMetaCodec method testProtoSchemaOperationBaseSpringMVC.

@Test
public void testProtoSchemaOperationBaseSpringMVC() throws Exception {
    mockSchemaMeta("ProtoSchema", new SpringmvcSwaggerGenerator(ProtoSchema.class), new ProtoSchema());
    testProtoSchemaOperationBaseImpl(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 2 with ProtoSchema

use of org.apache.servicecomb.codec.protobuf.internal.converter.model.ProtoSchema 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 3 with ProtoSchema

use of org.apache.servicecomb.codec.protobuf.internal.converter.model.ProtoSchema 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 4 with ProtoSchema

use of org.apache.servicecomb.codec.protobuf.internal.converter.model.ProtoSchema 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 5 with ProtoSchema

use of org.apache.servicecomb.codec.protobuf.internal.converter.model.ProtoSchema 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

ProtoSchema (org.apache.servicecomb.codec.protobuf.internal.converter.model.ProtoSchema)6 SpringmvcSwaggerGenerator (org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGenerator)6 Test (org.junit.Test)5 Swagger (io.swagger.models.Swagger)1 Expectations (mockit.Expectations)1 OperationMeta (org.apache.servicecomb.core.definition.OperationMeta)1 SchemaMeta (org.apache.servicecomb.core.definition.SchemaMeta)1 SwaggerEnvironment (org.apache.servicecomb.swagger.engine.SwaggerEnvironment)1 SwaggerProducer (org.apache.servicecomb.swagger.engine.SwaggerProducer)1 SwaggerProducerOperation (org.apache.servicecomb.swagger.engine.SwaggerProducerOperation)1 Before (org.junit.Before)1