[Android][Volley] add serializeModel support to Android (#3933)

* add serializeModel support to Android

* add test for new android option
This commit is contained in:
wing328
2016-10-06 17:35:33 +08:00
committed by GitHub
parent 515fe33c2c
commit cd6b5fec20
11 changed files with 35 additions and 22 deletions

View File

@@ -46,6 +46,8 @@ public class AndroidClientOptionsTest extends AbstractOptionsTest {
times = 1;
clientCodegen.setLibrary(AndroidClientOptionsProvider.LIBRARY_VALUE);
times = 1;
clientCodegen.setSerializableModel(Boolean.valueOf(AndroidClientOptionsProvider.SERIALIZABLE_MODEL_VALUE));
times = 1;
}};
}
}

View File

@@ -19,6 +19,7 @@ public class AndroidClientOptionsProvider implements OptionsProvider {
public static final String SOURCE_FOLDER_VALUE = "src/main/java/test";
public static final String ANDROID_MAVEN_GRADLE_PLUGIN_VALUE = "true";
public static final String LIBRARY_VALUE = "httpclient";
public static final String SERIALIZABLE_MODEL_VALUE = "false";
@Override
public String getLanguage() {
@@ -39,6 +40,7 @@ public class AndroidClientOptionsProvider implements OptionsProvider {
.put(CodegenConstants.SOURCE_FOLDER, SOURCE_FOLDER_VALUE)
.put(AndroidClientCodegen.USE_ANDROID_MAVEN_GRADLE_PLUGIN, ANDROID_MAVEN_GRADLE_PLUGIN_VALUE)
.put(CodegenConstants.LIBRARY, LIBRARY_VALUE)
.put(CodegenConstants.SERIALIZABLE_MODEL, SERIALIZABLE_MODEL_VALUE)
.build();
}