doortts doortts 2016-02-11
test: Fix compile error
@826504b1e621bcd51bfd674d5790bcdb73027757
test/models/PullRequestEventTest.java
--- test/models/PullRequestEventTest.java
+++ test/models/PullRequestEventTest.java
@@ -20,14 +20,14 @@
  */
 package models;
 
-import static org.fest.assertions.Assertions.*;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.lang3.time.DateUtils;
+import org.junit.Test;
 
 import java.text.ParseException;
 import java.util.List;
 
-import org.apache.commons.lang3.StringUtils;
-import org.apache.commons.lang3.time.DateUtils;
-import org.junit.*;
+import static org.fest.assertions.Assertions.assertThat;
 
 public class PullRequestEventTest extends ModelTest<PullRequestEventTest> {
     @Test
@@ -36,7 +36,7 @@
         PullRequestCommit first = createPullRequestCommit("2013-12-01");
         PullRequestCommit second = createPullRequestCommit("2013-12-02");
         PullRequestCommit third = createPullRequestCommit("2013-12-03");
-        String[] ids = {first.id, second.id, third.id};
+        Long[] ids = {first.id, second.id, third.id};
 
         PullRequestEvent event = new PullRequestEvent();
         event.newValue = StringUtils.join(ids, PullRequest.DELIMETER);
test/support/Helpers.java
--- test/support/Helpers.java
+++ test/support/Helpers.java
@@ -20,23 +20,24 @@
  */
 package support;
 
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
 import models.Issue;
 import models.Posting;
 import models.Project;
 import models.PullRequest;
-
 import play.Application;
 import play.GlobalSettings;
 import play.test.FakeApplication;
 import utils.YamlUtil;
 
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
 public class Helpers {
     public static Map<String, String> makeTestConfig() {
-        HashMap<String, String> config = new HashMap<>(play.test.Helpers.inMemoryDatabase());
+        Map<String, String> map = new HashMap<>();
+        map.put("MODE", "MySQL");
+        HashMap<String, String> config = new HashMap<>(play.test.Helpers.inMemoryDatabase("test"));
         config.put("ebean.default", "models.*");
         config.put("application.secret", "foo");
         config.put("application.context", "/");
Add a comment
List