Skip to content

Commit 182ffe2

Browse files
committed
Fix broken Options Test
1 parent bf20dbf commit 182ffe2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

modules/swagger-codegen/src/test/java/io/swagger/codegen/options/SpringOptionsProvider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public class SpringOptionsProvider extends JavaOptionsProvider {
2323
public static final String SWAGGER_DOCKET_CONFIG = "false";
2424
public static final String USE_OPTIONAL = "false";
2525
public static final String TARGET_OPENFEIGN = "false";
26+
public static final String DEFAULT_INTERFACES = "true";
2627

2728
@Override
2829
public String getLanguage() {
@@ -48,6 +49,7 @@ public Map<String, String> createOptions() {
4849
options.put(SpringCodegen.SWAGGER_DOCKET_CONFIG, SWAGGER_DOCKET_CONFIG);
4950
options.put(SpringCodegen.USE_OPTIONAL, USE_OPTIONAL);
5051
options.put(SpringCodegen.TARGET_OPENFEIGN, TARGET_OPENFEIGN);
52+
options.put(SpringCodegen.DEFAULT_INTERFACES, DEFAULT_INTERFACES);
5153

5254
return options;
5355
}

modules/swagger-codegen/src/test/java/io/swagger/codegen/spring/SpringOptionsTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ protected void setExpectations() {
8080
clientCodegen.setUseOptional(
8181
Boolean.valueOf(SpringOptionsProvider.USE_OPTIONAL));
8282
times = 1;
83+
clientCodegen.setDefaultInterfaces(Boolean.valueOf(SpringOptionsProvider.DEFAULT_INTERFACES));
84+
times = 1;
8385
}};
8486
}
8587
}

0 commit comments

Comments
 (0)