diff options
author | Jiri Vanek <[email protected]> | 2012-05-16 16:57:54 +0200 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2012-05-16 16:57:54 +0200 |
commit | 2abe2d3aac5295e26a7fd58253923d4677bd1562 (patch) | |
tree | 96aed9f287c51b0e2d90b4a9736aedf35dd0ec7e | |
parent | c2accc0a5995cbcc6587db76faa9043326b864ec (diff) |
2012-05-14 Jiri Vanek <[email protected]>
* tests/junit-runner/JunitLikeXmlOutputListener.java: fixed indentation
and spacing
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tests/junit-runner/JunitLikeXmlOutputListener.java | 60 |
2 files changed, 35 insertions, 30 deletions
@@ -1,3 +1,8 @@ +2012-05-14 Jiri Vanek <[email protected]> + + * tests/junit-runner/JunitLikeXmlOutputListener.java: fixed indentation + and spacing + 2012-05-11 Thomas Meyer <[email protected]> * tests/netx/unit/net/sourceforge/jnlp/util/PropertiesFileTest.java: Add diff --git a/tests/junit-runner/JunitLikeXmlOutputListener.java b/tests/junit-runner/JunitLikeXmlOutputListener.java index c21eb1b..53e6b5f 100644 --- a/tests/junit-runner/JunitLikeXmlOutputListener.java +++ b/tests/junit-runner/JunitLikeXmlOutputListener.java @@ -111,7 +111,7 @@ public class JunitLikeXmlOutputListener extends RunListener { } private static String attributize(String s) { - return s.replace("&", "&").replace("<", "<").replace("\"","""); + return s.replace("&", "&").replace("<", "<").replace("\"", """); } private void closeElement(String name) throws IOException { @@ -137,7 +137,7 @@ public class JunitLikeXmlOutputListener extends RunListener { @Override public void testStarted(Description description) throws Exception { testFailed = null; - testStart = System.nanoTime()/1000l/1000l; + testStart = System.nanoTime() / 1000l / 1000l; } @Override @@ -296,7 +296,7 @@ public class JunitLikeXmlOutputListener extends RunListener { * * @return Strng[2]{nameToBeShown, hrefValue} */ - public static String[] createBug(String string) { + public static String[] createBug(String string) { String[] r = {"ex", string}; String[] prefixes = { "S", @@ -326,40 +326,40 @@ public class JunitLikeXmlOutputListener extends RunListener { String distro = "http://mail.openjdk.java.net/pipermail/distro-pkg-dev/"; String openjdk = "http://mail.openjdk.java.net/pipermail/"; - if (string.startsWith(distro)){ - r[0]="distro-pkg"; + if (string.startsWith(distro)) { + r[0] = "distro-pkg"; return r; } - if (string.startsWith(openjdk)){ - r[0]="openjdk"; + if (string.startsWith(openjdk)) { + r[0] = "openjdk"; return r; } return r; } - public static void main(String[] args){ - String[] q=createBug("PR608"); - System.out.println(q[0]+" : "+q[1]); - q=createBug("S4854"); - System.out.println(q[0]+" : "+q[1]); - q=createBug("RH649423"); - System.out.println(q[0]+" : "+q[1]); - q=createBug("D464"); - System.out.println(q[0]+" : "+q[1]); - q=createBug("G6554"); - System.out.println(q[0]+" : "+q[1]); - q=createBug("CA1654"); - System.out.println(q[0]+" : "+q[1]); - q=createBug("LP5445"); - System.out.println(q[0]+" : "+q[1]); - - q=createBug("http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2011-November/016178.html"); - System.out.println(q[0]+" : "+q[1]); - q=createBug("http://mail.openjdk.java.net/pipermail/awt-dev/2012-March/002324.html"); - System.out.println(q[0]+" : "+q[1]); - - q=createBug("http://lists.fedoraproject.org/pipermail/chinese/2012-January/008868.html"); - System.out.println(q[0]+" : "+q[1]); + public static void main(String[] args) { + String[] q = createBug("PR608"); + System.out.println(q[0] + " : " + q[1]); + q = createBug("S4854"); + System.out.println(q[0] + " : " + q[1]); + q = createBug("RH649423"); + System.out.println(q[0] + " : " + q[1]); + q = createBug("D464"); + System.out.println(q[0] + " : " + q[1]); + q = createBug("G6554"); + System.out.println(q[0] + " : " + q[1]); + q = createBug("CA1654"); + System.out.println(q[0] + " : " + q[1]); + q = createBug("LP5445"); + System.out.println(q[0] + " : " + q[1]); + + q = createBug("http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2011-November/016178.html"); + System.out.println(q[0] + " : " + q[1]); + q = createBug("http://mail.openjdk.java.net/pipermail/awt-dev/2012-March/002324.html"); + System.out.println(q[0] + " : " + q[1]); + + q = createBug("http://lists.fedoraproject.org/pipermail/chinese/2012-January/008868.html"); + System.out.println(q[0] + " : " + q[1]); } } |