diff --git a/pom.xml b/pom.xml
index 8cb26275..ea7058a9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
org.gitlab
java-gitlab-api
- 1.1.3-SNAPSHOT
+ 1.1.2-groovy-SNAPSHOT
Gitlab Java API Wrapper
A Java wrapper for the Gitlab Git Hosting Server API
@@ -47,6 +47,12 @@
+
+ org.codehaus.groovy
+ groovy-all
+ 2.2.1
+ test
+
org.codehaus.jackson
jackson-core-asl
@@ -76,4 +82,4 @@
-
\ No newline at end of file
+
diff --git a/src/test/groovy/GitlabMRTest.groovy b/src/test/groovy/GitlabMRTest.groovy
new file mode 100644
index 00000000..842375fb
--- /dev/null
+++ b/src/test/groovy/GitlabMRTest.groovy
@@ -0,0 +1,22 @@
+import org.gitlab.api.GitlabAPI
+import org.junit.Before
+import org.junit.Test
+
+class GitlabMRTest {
+ GitlabAPI api;
+
+ @Before
+ public void setup() {
+ api = GitlabAPI.connect("http://wpsgit.kingsoft.net", "gid46Y9qHTMjGcA1byUC");
+ }
+
+ @Test
+ void testMergeRequest() {
+ def prjLst = api.getAllProjects()
+ def prj = prjLst.find{ prj -> prj.getPathWithNamespace() == 'wangdong/engine' }
+ def mrLst = api.getOpenMergeRequests(prj)
+ def m = mrLst[0]
+
+ println api.getAllNotes(m)[-1].getAuthor().getName()
+ }
+}