[embjopr-commits] EMBJOPR SVN: r511 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit.
embjopr-commits at lists.jboss.org
embjopr-commits at lists.jboss.org
Mon Jun 8 09:58:52 EDT 2009
Author: ozizka at redhat.com
Date: 2009-06-08 09:58:52 -0400 (Mon, 08 Jun 2009)
New Revision: 511
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
Log:
EmbjoprTestCase base class updated.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2009-06-05 18:52:41 UTC (rev 510)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2009-06-08 13:58:52 UTC (rev 511)
@@ -86,6 +86,8 @@
public JSFClientSession getClient() { return client; }
public JSFServerSession getServer() { return server; }
+ private long testStartTime;
+
/**
* Start a JSFUnit session by logging in to the main page. Note that
* because setUp() is called before each test, a new HttpSession will be
@@ -99,7 +101,10 @@
log.info(" Setting up test "+this.getClass().getName()+"#"+this.getName());
log.info("========================================================================================");
+ // Save the startup time.
+ this.testStartTime = System.currentTimeMillis();
+
// JVM version
log.info("Java version: "+System.getProperty("java.version") + "," +
" vendor: " +System.getProperty("java.vendor"));
@@ -157,7 +162,7 @@
@Override
protected void tearDown() throws Exception {
// Denounce this test in the JBoss log.
- log.info("------ END OF TEST "+this.getName()+" -------");
+ log.info("------ END OF TEST "+this.getName()+" - took "+((System.currentTimeMillis() - this.testStartTime)/1000)+" seconds. -------");
}
More information about the embjopr-commits
mailing list