Commit f4c2a4fe authored by Greg Messner's avatar Greg Messner
Browse files

Now tests GitLab API V4.

parent d2342924
...@@ -81,7 +81,7 @@ public class TestGitLabApi { ...@@ -81,7 +81,7 @@ public class TestGitLabApi {
} }
if (problems.isEmpty()) { if (problems.isEmpty()) {
gitLabApi = new GitLabApi(ApiVersion.V3, TEST_HOST_URL, TEST_PRIVATE_TOKEN); gitLabApi = new GitLabApi(ApiVersion.V4, TEST_HOST_URL, TEST_PRIVATE_TOKEN);
} else { } else {
System.err.print(problems); System.err.print(problems);
} }
......
...@@ -77,7 +77,7 @@ public class TestGitLabSession { ...@@ -77,7 +77,7 @@ public class TestGitLabSession {
@Test @Test
public void testSession() throws GitLabApiException { public void testSession() throws GitLabApiException {
GitLabApi gitLabApi = GitLabApi.login(ApiVersion.V3, TEST_HOST_URL, TEST_USERNAME, TEST_PASSWORD); GitLabApi gitLabApi = GitLabApi.login(ApiVersion.V4, TEST_HOST_URL, TEST_USERNAME, TEST_PASSWORD);
assertNotNull(gitLabApi); assertNotNull(gitLabApi);
assertNotNull(gitLabApi.getSession()); assertNotNull(gitLabApi.getSession());
assertEquals(TEST_PRIVATE_TOKEN, gitLabApi.getSession().getPrivateToken()); assertEquals(TEST_PRIVATE_TOKEN, gitLabApi.getSession().getPrivateToken());
......
...@@ -62,7 +62,7 @@ public class TestNamespaceApi { ...@@ -62,7 +62,7 @@ public class TestNamespaceApi {
} }
if (problems.isEmpty()) { if (problems.isEmpty()) {
gitLabApi = new GitLabApi(ApiVersion.V3, TEST_HOST_URL, TEST_PRIVATE_TOKEN); gitLabApi = new GitLabApi(ApiVersion.V4, TEST_HOST_URL, TEST_PRIVATE_TOKEN);
} else { } else {
System.err.print(problems); System.err.print(problems);
} }
......
...@@ -69,7 +69,7 @@ public class TestProjectApi { ...@@ -69,7 +69,7 @@ public class TestProjectApi {
} }
if (problems.isEmpty()) { if (problems.isEmpty()) {
gitLabApi = new GitLabApi(ApiVersion.V3, TEST_HOST_URL, TEST_PRIVATE_TOKEN); gitLabApi = new GitLabApi(ApiVersion.V4, TEST_HOST_URL, TEST_PRIVATE_TOKEN);
} else { } else {
System.err.print(problems); System.err.print(problems);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment