In-memory tests for searching changes

Use InMemoryModule to inject everything needed to manually insert
commits into a repo and changes into a database, then query the
results.

Change-Id: I22f6d663039039dd4d3f2189e587dbd22f11252b
This commit is contained in:
Dave Borowitz
2013-10-09 11:17:13 -07:00
parent ceeff43182
commit 8122f7edb0
3 changed files with 170 additions and 4 deletions

View File

@@ -924,7 +924,7 @@ public class ChangeJson {
Boolean mergeable;
String _sortkey;
int _number;
public int _number;
AccountInfo owner;

View File

@@ -42,8 +42,8 @@ import java.io.IOException;
import java.util.List;
@RequiresCapability(GlobalCapability.CREATE_PROJECT)
class CreateProject implements RestModifyView<TopLevelResource, Input> {
static class Input {
public class CreateProject implements RestModifyView<TopLevelResource, Input> {
public static class Input {
String name;
String parent;
String description;
@@ -59,7 +59,7 @@ class CreateProject implements RestModifyView<TopLevelResource, Input> {
String maxObjectSizeLimit;
}
static interface Factory {
public static interface Factory {
CreateProject create(String name);
}