File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,9 @@ public void processOpts() {
210210 // {{sourceFolder}}
211211 if (additionalProperties .containsKey (CodegenConstants .SOURCE_FOLDER )) {
212212 setSourceFolder ((String ) additionalProperties .get (CodegenConstants .SOURCE_FOLDER ));
213+ // By default, the test folder shares the same path as the source folder.
214+ // Therefore, both are updated when setting the source folder.
215+ setTestFolder ((String ) additionalProperties .get (CodegenConstants .SOURCE_FOLDER ));
213216 } else {
214217 additionalProperties .put (CodegenConstants .SOURCE_FOLDER , this .sourceFolder );
215218 }
@@ -925,6 +928,10 @@ public void setSourceFolder(String sourceFolder) {
925928 this .sourceFolder = sourceFolder ;
926929 }
927930
931+ public void setTestFolder (String testFolder ) {
932+ this .testFolder = testFolder ;
933+ }
934+
928935 public String getInterfacePrefix () {
929936 return interfacePrefix ;
930937 }
You can’t perform that action at this time.
0 commit comments