Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests')
-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