summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Trutz2011-05-12 10:15:16 (EDT)
committerChristian Trutz2011-05-12 15:36:26 (EDT)
commit8d67bad3b63edd9b4ac99c1af7f69041715b7c59 (patch)
treeb28e3502ca89e553bf287fa56deaf5ca5e0a3861
parent0d93fc473545becca69c0595289ac472afaea68f (diff)
downloadegit-github-8d67bad3b63edd9b4ac99c1af7f69041715b7c59.zip
egit-github-8d67bad3b63edd9b4ac99c1af7f69041715b7c59.tar.gz
egit-github-8d67bad3b63edd9b4ac99c1af7f69041715b7c59.tar.bz2
Unit tests cleanup.refs/changes/94/3394/2
Change-Id: I7b2b0b29824a1cc2354eda9a23d67228810833da Signed-off-by: Christian Trutz <christian.trutz@gmail.com>
-rw-r--r--[-rwxr-xr-x]org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/CommentTest.java1
-rw-r--r--[-rwxr-xr-x]org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistRevisionTest.java1
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistServiceTest.java7
-rw-r--r--[-rwxr-xr-x]org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistTest.java1
-rw-r--r--[-rwxr-xr-x]org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GitHubClientTest.java1
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/IssueServiceTest.java1
-rw-r--r--[-rwxr-xr-x]org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/IssueTest.java1
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/LabelServiceTest.java3
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/MilestoneServiceTest.java9
-rw-r--r--[-rwxr-xr-x]org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/MilestoneTest.java1
-rw-r--r--[-rwxr-xr-x]org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/PullRequestServiceTest.java1
11 files changed, 0 insertions, 27 deletions
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/CommentTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/CommentTest.java
index eddc8d9..3b6c6a3 100755..100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/CommentTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/CommentTest.java
@@ -23,7 +23,6 @@ import org.mockito.runners.MockitoJUnitRunner;
/**
* Unit tests for {@link Comment}
*/
-@SuppressWarnings("restriction")
@RunWith(MockitoJUnitRunner.class)
public class CommentTest {
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistRevisionTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistRevisionTest.java
index facc6e4..ec129b0 100755..100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistRevisionTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistRevisionTest.java
@@ -23,7 +23,6 @@ import org.mockito.runners.MockitoJUnitRunner;
/**
* Unit tests for {@link GistRevision}
*/
-@SuppressWarnings("restriction")
@RunWith(MockitoJUnitRunner.class)
public class GistRevisionTest {
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistServiceTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistServiceTest.java
index d3b158b..8301302 100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistServiceTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistServiceTest.java
@@ -14,11 +14,8 @@ import static org.mockito.Matchers.any;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.verify;
-import com.google.gson.reflect.TypeToken;
-
import java.io.IOException;
import java.util.HashMap;
-import java.util.List;
import java.util.Map;
import org.eclipse.egit.github.core.Comment;
@@ -38,7 +35,6 @@ import org.mockito.runners.MockitoJUnitRunner;
/**
* Unit tests for {@link GistService}
*/
-@SuppressWarnings("restriction")
@RunWith(MockitoJUnitRunner.class)
public class GistServiceTest {
@@ -162,9 +158,6 @@ public class GistServiceTest {
@Test
public void getComments_OK() throws IOException {
gistService.getComments("1");
-
- TypeToken<List<Comment>> commentsToken = new TypeToken<List<Comment>>() {
- };
verify(gitHubClient).get(any(GitHubRequest.class));
}
}
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistTest.java
index ef12103..957ac95 100755..100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistTest.java
@@ -23,7 +23,6 @@ import org.mockito.runners.MockitoJUnitRunner;
/**
* Unit tests for {@link Gist}
*/
-@SuppressWarnings("restriction")
@RunWith(MockitoJUnitRunner.class)
public class GistTest {
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GitHubClientTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GitHubClientTest.java
index 2354b1e..296a95b 100755..100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GitHubClientTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GitHubClientTest.java
@@ -15,7 +15,6 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
-@SuppressWarnings("restriction")
@RunWith(MockitoJUnitRunner.class)
public class GitHubClientTest {
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/IssueServiceTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/IssueServiceTest.java
index 1fb1dce..a35c219 100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/IssueServiceTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/IssueServiceTest.java
@@ -33,7 +33,6 @@ import org.mockito.runners.MockitoJUnitRunner;
/**
* Unit tests for {@link IssueService}
*/
-@SuppressWarnings("restriction")
@RunWith(MockitoJUnitRunner.class)
public class IssueServiceTest {
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/IssueTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/IssueTest.java
index 9b27e70..53e2114 100755..100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/IssueTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/IssueTest.java
@@ -23,7 +23,6 @@ import org.mockito.runners.MockitoJUnitRunner;
/**
* Unit tests for {@link Issue}
*/
-@SuppressWarnings("restriction")
@RunWith(MockitoJUnitRunner.class)
public class IssueTest {
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/LabelServiceTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/LabelServiceTest.java
index e183934..9851f4f 100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/LabelServiceTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/LabelServiceTest.java
@@ -34,7 +34,6 @@ import org.mockito.runners.MockitoJUnitRunner;
/**
* Unit tests for {@link LabelService}.
*/
-@SuppressWarnings("restriction")
@RunWith(MockitoJUnitRunner.class)
public class LabelServiceTest {
@@ -70,8 +69,6 @@ public class LabelServiceTest {
@Test
public void getLabels_OK() throws IOException {
labelService.getLabels("test_user", "test_repository");
- TypeToken<List<Label>> labelsToken = new TypeToken<List<Label>>() {
- };
verify(gitHubClient).get(any(GitHubRequest.class));
}
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/MilestoneServiceTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/MilestoneServiceTest.java
index 4732932..0b2de43 100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/MilestoneServiceTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/MilestoneServiceTest.java
@@ -14,12 +14,8 @@ import static org.mockito.Matchers.any;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.verify;
-import com.google.gson.reflect.TypeToken;
-
import java.io.IOException;
-import java.util.List;
-import org.eclipse.egit.github.core.Milestone;
import org.eclipse.egit.github.core.client.GitHubClient;
import org.eclipse.egit.github.core.client.GitHubRequest;
import org.eclipse.egit.github.core.client.GitHubResponse;
@@ -33,7 +29,6 @@ import org.mockito.runners.MockitoJUnitRunner;
/**
* Unit tests for {@link MilestoneService}
*/
-@SuppressWarnings("restriction")
@RunWith(MockitoJUnitRunner.class)
public class MilestoneServiceTest {
@@ -69,8 +64,6 @@ public class MilestoneServiceTest {
@Test
public void getMilestones_NullState() throws IOException {
milestoneService.getMilestones("test_user", "test_repository", null);
- TypeToken<List<Milestone>> milestonesToken = new TypeToken<List<Milestone>>() {
- };
verify(gitHubClient).get(any(GitHubRequest.class));
}
@@ -78,8 +71,6 @@ public class MilestoneServiceTest {
public void getMilestones_OK() throws IOException {
milestoneService.getMilestones("test_user", "test_repository",
"test_state");
- TypeToken<List<Milestone>> milestonesToken = new TypeToken<List<Milestone>>() {
- };
verify(gitHubClient).get(any(GitHubRequest.class));
}
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/MilestoneTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/MilestoneTest.java
index 372e570..4a8f644 100755..100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/MilestoneTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/MilestoneTest.java
@@ -23,7 +23,6 @@ import org.mockito.runners.MockitoJUnitRunner;
/**
* Unit tests for {@link Milestone}
*/
-@SuppressWarnings("restriction")
@RunWith(MockitoJUnitRunner.class)
public class MilestoneTest {
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/PullRequestServiceTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/PullRequestServiceTest.java
index 088778f..3d65b08 100755..100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/PullRequestServiceTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/PullRequestServiceTest.java
@@ -27,7 +27,6 @@ import org.mockito.runners.MockitoJUnitRunner;
/**
* Tests for {@link PullRequestServiceTest}
*/
-@SuppressWarnings("restriction")
@RunWith(MockitoJUnitRunner.class)
public class PullRequestServiceTest {