Acceptance tests: Remove duplicated JSON container classes
This change makes it possible to reuse server side classes for both input and output JSON container classes. To solve the mismatch between server-side CamelCase and lower case with underscore the field naming policy is set to FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES in GsonBuilder in RestSession in acceptance framework. Now we can remove dozen of duplicated classes in acceptance framework. Change-Id: Icdc7f63a38c304f3a744a7a12b768cda2504a55e
This commit is contained in:
@@ -38,10 +38,10 @@ import org.eclipse.jgit.errors.RepositoryNotFoundException;
|
||||
import java.io.IOException;
|
||||
|
||||
public class SetParent implements RestModifyView<ProjectResource, Input> {
|
||||
static class Input {
|
||||
public static class Input {
|
||||
@DefaultInput
|
||||
String parent;
|
||||
String commitMessage;
|
||||
public String parent;
|
||||
public String commitMessage;
|
||||
}
|
||||
|
||||
private final ProjectCache cache;
|
||||
|
||||
Reference in New Issue
Block a user