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:
David Ostrovsky
2014-01-11 20:24:20 +01:00
parent 03672ba35a
commit d354ee04f7
66 changed files with 303 additions and 824 deletions

View File

@@ -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;