Commit 3489473f authored by Greg Messner's avatar Greg Messner
Browse files

Changes due to refactored GitLabApi.

parent dae00ce1
...@@ -7,6 +7,8 @@ import java.util.List; ...@@ -7,6 +7,8 @@ import java.util.List;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;
import com.messners.gitlab.api.models.Project;
public class TestGitLabApi { public class TestGitLabApi {
// The following needs to be set to your test repository // The following needs to be set to your test repository
...@@ -28,7 +30,7 @@ public class TestGitLabApi { ...@@ -28,7 +30,7 @@ public class TestGitLabApi {
public void testProjects () { public void testProjects () {
try { try {
List<Project> projects = gitLabApi.getProjects(); List<Project> projects = gitLabApi.getProjectApi().getProjects();
assertTrue(projects != null); assertTrue(projects != null);
} catch (Exception e) { } catch (Exception e) {
System.err.println("Check TEST_HOST_URL and TEST_PRIVATE_TOKEN, they are probably not set."); System.err.println("Check TEST_HOST_URL and TEST_PRIVATE_TOKEN, they are probably not set.");
...@@ -39,7 +41,7 @@ public class TestGitLabApi { ...@@ -39,7 +41,7 @@ public class TestGitLabApi {
public void testOwnedProjects () { public void testOwnedProjects () {
try { try {
List<Project> projects = gitLabApi.getOwnedProjects(); List<Project> projects = gitLabApi.getProjectApi().getOwnedProjects();
assertTrue(projects != null); assertTrue(projects != null);
} catch (Exception e) { } catch (Exception e) {
......
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