Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Ander Peñalba2015-03-12 08:23:53 -0400
committerMatthias Sohn2015-03-12 16:47:08 -0400
commitd1d5d162eff483a234c1f9706fd31468f5c9f98b (patch)
tree851f8b22aadfc456b6b3e383d31c2ac1d4ebc3c6
parent25724ff0dfa9ff7adec2c4b428c9e2809b881f6d (diff)
downloadegit-github-d1d5d162eff483a234c1f9706fd31468f5c9f98b.tar.gz
egit-github-d1d5d162eff483a234c1f9706fd31468f5c9f98b.tar.xz
egit-github-d1d5d162eff483a234c1f9706fd31468f5c9f98b.zip
Added `bio` field to the User class
Change-Id: I35adb34f447cb99267f0cacfe90297ae74ad8710 Signed-off-by: Jon Ander Peñalba <jonan88@gmail.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/UserTest.java2
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/User.java18
2 files changed, 20 insertions, 0 deletions
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/UserTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/UserTest.java
index bf88b47f..775a86f0 100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/UserTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/UserTest.java
@@ -56,6 +56,7 @@ public class UserTest {
assertNull(user.getType());
assertNull(user.getUrl());
assertFalse(user.isHireable());
+ assertNull(user.getBio());
}
/**
@@ -90,5 +91,6 @@ public class UserTest {
assertEquals("reg", user.setType("reg").getType());
assertEquals("url", user.setUrl("url").getUrl());
assertTrue(user.setHireable(true).isHireable());
+ assertEquals("bio", user.setBio("bio").getBio());
}
}
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/User.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/User.java
index 413273a1..1fe5743f 100644
--- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/User.java
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/User.java
@@ -59,6 +59,8 @@ public class User implements Serializable {
private String avatarUrl;
+ private String bio;
+
private String blog;
private String company;
@@ -290,6 +292,22 @@ public class User implements Serializable {
}
/**
+ * @return bio
+ */
+ public String getBio() {
+ return bio;
+ }
+
+ /**
+ * @param bio
+ * @return this user
+ */
+ public User setBio(String bio) {
+ this.bio = bio;
+ return this;
+ }
+
+ /**
* @return blog
*/
public String getBlog() {

Back to the top