Skip to content

Commit

Permalink
Merge pull request #8950 from swagger-api/disable_spring_tests
Browse files Browse the repository at this point in the history
disabled spring tests generation.
  • Loading branch information
HugoMario committed Nov 27, 2018
2 parents ae475af + 7b66f68 commit 0d0cd9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2332,7 +2332,8 @@ public int compare(CodegenParameter one, CodegenParameter another) {
op.isRestfulDestroy = op.isRestfulDestroy();
op.isRestful = op.isRestful();

configureDataForTestTemplate(op);
// TODO: fix error with resolved yaml/json generators in order to enable this again.
//configureDataForTestTemplate(op);

return op;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public class SpringCodegen extends AbstractJavaCodegen
public SpringCodegen() {
super();
outputFolder = "generated-code/javaSpring";
apiTestTemplateFiles.clear();
embeddedTemplateDir = templateDir = "JavaSpring";
apiPackage = "io.swagger.api";
modelPackage = "io.swagger.model";
Expand Down Expand Up @@ -253,7 +254,6 @@ public void processOpts() {
additionalProperties.put(SINGLE_CONTENT_TYPES, "true");
this.setSingleContentTypes(true);
}
apiTestTemplateFiles.clear();
} else {
apiTemplateFiles.put("apiController.mustache", "Controller.java");
supportingFiles.add(new SupportingFile("apiException.mustache",
Expand Down

0 comments on commit 0d0cd9e

Please sign in to comment.