Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2018-03-10 00:35:24 +0000
committerMatthias Sohn2018-03-16 23:55:55 +0000
commitcc2adf9a8576000b32da32c5319185116fc9f56d (patch)
tree5eafb83b78eddff31480dded1198a5ba5935cd1e /org.eclipse.egit.github.core.tests/src/org/eclipse
parent17e2b92ea4cdff9e53d27f404b37609f2f4093fa (diff)
downloadegit-github-cc2adf9a8576000b32da32c5319185116fc9f56d.tar.gz
egit-github-cc2adf9a8576000b32da32c5319185116fc9f56d.tar.xz
egit-github-cc2adf9a8576000b32da32c5319185116fc9f56d.zip
Remove deprecated Gist#setUser and #getUser methods
Change-Id: I4b5cc5f5dc1fe3d8a5753081f20e1ea27acdc3f8 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.egit.github.core.tests/src/org/eclipse')
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistServiceTest.java4
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistTest.java4
2 files changed, 4 insertions, 4 deletions
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 b88f31c9..fe0c0d1b 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
@@ -389,9 +389,9 @@ public class GistServiceTest {
* @throws IOException
*/
@Test
- public void createGistNullUser() throws IOException {
+ public void createGistNullOwner() throws IOException {
Gist gist = new Gist();
- gist.setUser(null);
+ gist.setOwner(null);
gistService.createGist(gist);
verify(gitHubClient).post("/gists", gist, Gist.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 e03248c1..8b48bcec 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
@@ -46,7 +46,7 @@ public class GistTest {
assertNull(gist.getId());
assertNull(gist.getUpdatedAt());
assertNull(gist.getUrl());
- assertNull(gist.getUser());
+ assertNull(gist.getOwner());
assertNull(gist.getOwner());
assertFalse(gist.isPublic());
}
@@ -75,7 +75,7 @@ public class GistTest {
.getUpdatedAt());
assertEquals("url", gist.setUrl("url").getUrl());
User user = new User().setLogin("use");
- assertEquals(user, gist.setUser(user).getUser());
+ assertEquals(user, gist.setOwner(user).getOwner());
assertTrue(gist.setPublic(true).isPublic());
}

Back to the top