use of com.google.api.generator.gapic.model.GapicContext in project gapic-generator-java by googleapis.
the class GrpcServiceStubClassComposerTest method generateGrpcServiceStubClass_simple.
@Test
public void generateGrpcServiceStubClass_simple() {
GapicContext context = GrpcTestProtoLoader.instance().parseShowcaseEcho();
Service echoProtoService = context.services().get(0);
GapicClass clazz = GrpcServiceStubClassComposer.instance().generate(context, echoProtoService);
Assert.assertGoldenClass(this.getClass(), clazz, "GrpcEchoStub.golden");
Assert.assertEmptySamples(clazz.samples());
}
Aggregations