Skip to content

Commit

Permalink
Codegen tests: Rename json dir to rest-json
Browse files Browse the repository at this point in the history
The test models in this directory are for a REST-JSON service, not an
RPC service, so it's clearer if the directory is explicitly named that
way, especially since we want to introduce RPC-specific codegen tests
for event streaming.
  • Loading branch information
rschmitt authored and zoewangg committed Apr 28, 2021
1 parent 31c8c7b commit ca22fdb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public class ClientTestModels {
private ClientTestModels() {}

public static IntermediateModel jsonServiceModels() {
File serviceModel = new File(ClientTestModels.class.getResource("client/c2j/json/service-2.json").getFile());
File customizationModel = new File(ClientTestModels.class.getResource("client/c2j/json/customization.config").getFile());
File paginatorsModel = new File(ClientTestModels.class.getResource("client/c2j/json/paginators.json").getFile());
File serviceModel = new File(ClientTestModels.class.getResource("client/c2j/rest-json/service-2.json").getFile());
File customizationModel = new File(ClientTestModels.class.getResource("client/c2j/rest-json/customization.config").getFile());
File paginatorsModel = new File(ClientTestModels.class.getResource("client/c2j/rest-json/paginators.json").getFile());
C2jModels models = C2jModels.builder()
.serviceModel(getServiceModel(serviceModel))
.customizationConfig(getCustomizationConfig(customizationModel))
Expand Down

0 comments on commit ca22fdb

Please sign in to comment.