use of com.google.api.codegen.gapic.GapicTestConfig in project toolkit by googleapis.
the class CodegenTestUtil method readModel.
public static Model readModel(TestDataLocator locator, TemporaryFolder tempDir, String[] protoFiles, String[] yamlFiles) {
TestConfig testConfig = new GapicTestConfig(locator, tempDir.getRoot().getPath(), Arrays.asList(protoFiles));
Model model = testConfig.createModel(Arrays.asList(yamlFiles));
StandardSetup.registerStandardProcessors(model);
StandardSetup.registerStandardConfigAspects(model);
model.establishStage(Merged.KEY);
return model;
}
Aggregations