Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Ander Peñalba2015-03-12 11:41:37 -0400
committerJon Ander Peñalba2015-03-12 17:25:36 -0400
commit682f085d60dc27095485a0a7d7e7d888dfc4c03c (patch)
treea65c62e119c5585663224f1cf52ec90c034cfc55 /org.eclipse.egit.github.core.tests
parent975e702acabd43c6e2a890a69a7d7f0605c09afb (diff)
downloadegit-github-682f085d60dc27095485a0a7d7e7d888dfc4c03c.tar.gz
egit-github-682f085d60dc27095485a0a7d7e7d888dfc4c03c.tar.xz
egit-github-682f085d60dc27095485a0a7d7e7d888dfc4c03c.zip
Update API calls to v3
Old methods have been marked as deprecated. The differences are documented here: https://developer.github.com/v3/versions/ Change-Id: Ifa981d1421c1155fdff2b6783bcfb869e8f942ae Signed-off-by: Jon Ander Peñalba <jonan88@gmail.com>
Diffstat (limited to 'org.eclipse.egit.github.core.tests')
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistTest.java1
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryTest.java4
2 files changed, 3 insertions, 2 deletions
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 91c71c81..e03248c1 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
@@ -47,6 +47,7 @@ public class GistTest {
assertNull(gist.getUpdatedAt());
assertNull(gist.getUrl());
assertNull(gist.getUser());
+ assertNull(gist.getOwner());
assertFalse(gist.isPublic());
}
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryTest.java
index 265cf104..5506d231 100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryTest.java
@@ -40,7 +40,7 @@ public class RepositoryTest {
assertNull(repo.getHomepage());
assertNull(repo.getHtmlUrl());
assertNull(repo.getLanguage());
- assertNull(repo.getMasterBranch());
+ assertNull(repo.getDefaultBranch());
assertNull(repo.getMirrorUrl());
assertNull(repo.getName());
assertEquals(0, repo.getOpenIssues());
@@ -77,7 +77,7 @@ public class RepositoryTest {
assertEquals("home", repo.setHomepage("home").getHomepage());
assertEquals("html", repo.setHtmlUrl("html").getHtmlUrl());
assertEquals("java", repo.setLanguage("java").getLanguage());
- assertEquals("master", repo.setMasterBranch("master").getMasterBranch());
+ assertEquals("master", repo.setDefaultBranch("master").getDefaultBranch());
assertEquals("project", repo.setName("project").getName());
assertEquals(20, repo.setOpenIssues(20).getOpenIssues());
User owner = new User().setLogin("owner");

Back to the top