Author: ozizka(a)redhat.com
Date: 2009-02-06 15:18:26 -0500 (Fri, 06 Feb 2009)
New Revision: 142
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
Log:
Added: Java version, vendor and home dir logged in setUp()
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2009-02-06
20:14:29 UTC (rev 141)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2009-02-06
20:18:26 UTC (rev 142)
@@ -66,7 +66,13 @@
*/
public void setUp() throws IOException
{
- // JBoss as version
+
+ // JVM version
+ log.info("Java version: "+System.getProperty("java.version") +
"," +
+ " vendor: " +System.getProperty("java.vendor"));
+ log.info("Java home: " +System.getProperty("java.home"));
+
+ // JBoss AS version
String version = Package.getPackage("org.jboss.system.server")
.getImplementationVersion();
log.info("Detected AS version: " + version);
@@ -173,13 +179,12 @@
String[] idElements = id.split(":");
String rowNum = idElements[idElements.length - 2];
return ((HtmlTableCell)client.getElement(rowNum
- +
":measurementValue")).asText();
+ + ":measurementValue")).asText();
}
}
- throw new IllegalStateException("Value of '" + metricName
- + "' not found.");
+ throw new IllegalStateException("Value of '"+metricName+"'
not found.");
}
/**