use of com.google.api.generator.gapic.model.Service in project gapic-generator-java by googleapis.
the class MockServiceClassComposerTest method generateMockServiceClasses.
@Test
public void generateMockServiceClasses() {
Service service = context.services().get(0);
GapicClass clazz = MockServiceClassComposer.instance().generate(context, service);
Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
Assert.assertEmptySamples(clazz.samples());
}
use of com.google.api.generator.gapic.model.Service in project gapic-generator-java by googleapis.
the class ServiceClientClassComposerTest method generateServiceClientClasses.
@Test
public void generateServiceClientClasses() {
Service service = context.services().get(0);
GapicClass clazz = ServiceClientClassComposer.instance().generate(context, service);
Assert.assertGoldenClass(this.getClass(), clazz, name + ".golden");
Assert.assertGoldenSamples(this.getClass(), name, clazz.classDefinition().packageString(), clazz.samples());
}
Aggregations