[Notice] Announcing the End of Demo Server [Read me]
--- test/models/PullRequestEventTest.java
+++ test/models/PullRequestEventTest.java
... | ... | @@ -20,14 +20,14 @@ |
20 | 20 |
*/ |
21 | 21 |
package models; |
22 | 22 |
|
23 |
-import static org.fest.assertions.Assertions.*; |
|
23 |
+import org.apache.commons.lang3.StringUtils; |
|
24 |
+import org.apache.commons.lang3.time.DateUtils; |
|
25 |
+import org.junit.Test; |
|
24 | 26 |
|
25 | 27 |
import java.text.ParseException; |
26 | 28 |
import java.util.List; |
27 | 29 |
|
28 |
-import org.apache.commons.lang3.StringUtils; |
|
29 |
-import org.apache.commons.lang3.time.DateUtils; |
|
30 |
-import org.junit.*; |
|
30 |
+import static org.fest.assertions.Assertions.assertThat; |
|
31 | 31 |
|
32 | 32 |
public class PullRequestEventTest extends ModelTest<PullRequestEventTest> { |
33 | 33 |
@Test |
... | ... | @@ -36,7 +36,7 @@ |
36 | 36 |
PullRequestCommit first = createPullRequestCommit("2013-12-01"); |
37 | 37 |
PullRequestCommit second = createPullRequestCommit("2013-12-02"); |
38 | 38 |
PullRequestCommit third = createPullRequestCommit("2013-12-03"); |
39 |
- String[] ids = {first.id, second.id, third.id}; |
|
39 |
+ Long[] ids = {first.id, second.id, third.id}; |
|
40 | 40 |
|
41 | 41 |
PullRequestEvent event = new PullRequestEvent(); |
42 | 42 |
event.newValue = StringUtils.join(ids, PullRequest.DELIMETER); |
--- test/support/Helpers.java
+++ test/support/Helpers.java
... | ... | @@ -20,23 +20,24 @@ |
20 | 20 |
*/ |
21 | 21 |
package support; |
22 | 22 |
|
23 |
-import java.util.HashMap; |
|
24 |
-import java.util.List; |
|
25 |
-import java.util.Map; |
|
26 |
- |
|
27 | 23 |
import models.Issue; |
28 | 24 |
import models.Posting; |
29 | 25 |
import models.Project; |
30 | 26 |
import models.PullRequest; |
31 |
- |
|
32 | 27 |
import play.Application; |
33 | 28 |
import play.GlobalSettings; |
34 | 29 |
import play.test.FakeApplication; |
35 | 30 |
import utils.YamlUtil; |
36 | 31 |
|
32 |
+import java.util.HashMap; |
|
33 |
+import java.util.List; |
|
34 |
+import java.util.Map; |
|
35 |
+ |
|
37 | 36 |
public class Helpers { |
38 | 37 |
public static Map<String, String> makeTestConfig() { |
39 |
- HashMap<String, String> config = new HashMap<>(play.test.Helpers.inMemoryDatabase()); |
|
38 |
+ Map<String, String> map = new HashMap<>(); |
|
39 |
+ map.put("MODE", "MySQL"); |
|
40 |
+ HashMap<String, String> config = new HashMap<>(play.test.Helpers.inMemoryDatabase("test")); |
|
40 | 41 |
config.put("ebean.default", "models.*"); |
41 | 42 |
config.put("application.secret", "foo"); |
42 | 43 |
config.put("application.context", "/"); |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?