forked from loafle/openapi-generator-original
add interfaceOnly option test
This commit is contained in:
parent
3b37584c1f
commit
a452bbf039
@ -10,6 +10,7 @@ public class SpringBootServerOptionsProvider extends JavaOptionsProvider {
|
|||||||
public static final String CONFIG_PACKAGE_VALUE = "configPackage";
|
public static final String CONFIG_PACKAGE_VALUE = "configPackage";
|
||||||
public static final String BASE_PACKAGE_VALUE = "basePackage";
|
public static final String BASE_PACKAGE_VALUE = "basePackage";
|
||||||
public static final String LIBRARY_VALUE = "j8-async"; //FIXME hidding value from super class
|
public static final String LIBRARY_VALUE = "j8-async"; //FIXME hidding value from super class
|
||||||
|
public static final String INTERFACE_ONLY = "true";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getLanguage() {
|
public String getLanguage() {
|
||||||
@ -22,6 +23,8 @@ public class SpringBootServerOptionsProvider extends JavaOptionsProvider {
|
|||||||
options.put(SpringBootServerCodegen.CONFIG_PACKAGE, CONFIG_PACKAGE_VALUE);
|
options.put(SpringBootServerCodegen.CONFIG_PACKAGE, CONFIG_PACKAGE_VALUE);
|
||||||
options.put(SpringBootServerCodegen.BASE_PACKAGE, BASE_PACKAGE_VALUE);
|
options.put(SpringBootServerCodegen.BASE_PACKAGE, BASE_PACKAGE_VALUE);
|
||||||
options.put(CodegenConstants.LIBRARY, LIBRARY_VALUE);
|
options.put(CodegenConstants.LIBRARY, LIBRARY_VALUE);
|
||||||
|
options.put(SpringBootServerCodegen.INTERFACE_ONLY, INTERFACE_ONLY);
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,6 +54,8 @@ public class SpringBootServerOptionsTest extends JavaClientOptionsTest {
|
|||||||
times = 1;
|
times = 1;
|
||||||
clientCodegen.setBasePackage(SpringBootServerOptionsProvider.BASE_PACKAGE_VALUE);
|
clientCodegen.setBasePackage(SpringBootServerOptionsProvider.BASE_PACKAGE_VALUE);
|
||||||
times = 1;
|
times = 1;
|
||||||
|
clientCodegen.setInterfaceOnly(Boolean.valueOf(SpringBootServerOptionsProvider.INTERFACE_ONLY));
|
||||||
|
times = 1;
|
||||||
|
|
||||||
}};
|
}};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user