Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-01-31 08:41:13 +0000
committerSteffen Pingel2012-01-31 08:41:13 +0000
commit00b12019b22744a0319be904886e0449ca3a89e5 (patch)
treeeec819c65a32f4bb60856baba016d4cac0edda51
parentf96db5910316c4ffb8a93927044e081ae88ac1c5 (diff)
downloadorg.eclipse.mylyn.tasks-00b12019b22744a0319be904886e0449ca3a89e5.tar.gz
org.eclipse.mylyn.tasks-00b12019b22744a0319be904886e0449ca3a89e5.tar.xz
org.eclipse.mylyn.tasks-00b12019b22744a0319be904886e0449ca3a89e5.zip
NEW - bug 358804: add support for short usernames
https://bugs.eclipse.org/bugs/show_bug.cgi?id=358804
-rw-r--r--org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestUtil.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestUtil.java b/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestUtil.java
index 7c023474c..54ae16bb2 100644
--- a/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestUtil.java
+++ b/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestUtil.java
@@ -47,6 +47,14 @@ public class TestUtil {
public String toString() {
return getClass().getSimpleName() + " [username=" + username + ",password=" + password + "]";
}
+
+ public String getShortUserName() {
+ if (username.contains("@")) {
+ return username.substring(0, username.indexOf("@"));
+ }
+ return username;
+ }
+
}
public static Credentials readCredentials() {

Back to the top