[embjopr-commits] EMBJOPR SVN: r500 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit.

embjopr-commits at lists.jboss.org embjopr-commits at lists.jboss.org
Fri Jun 5 09:33:24 EDT 2009


Author: ozizka at redhat.com
Date: 2009-06-05 09:33:23 -0400 (Fri, 05 Jun 2009)
New Revision: 500

Modified:
   trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
Log:
EmbjoprTestCase#getMetricValueFromTable() now checks whether the metrics table was found.

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-04 18:36:07 UTC (rev 499)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java	2009-06-05 13:33:23 UTC (rev 500)
@@ -257,6 +257,8 @@
         
         // Get the metrics data table
         HtmlTable metricsTable = (HtmlTable)client.getElement(tableId);
+				if( null == metricsTable )
+					throw new IllegalStateException("Metrics table with ID '"+tableId+"' not found.");
         List<HtmlTableRow> rows = metricsTable.getRows();
         
         // Find the appropriate metric and return its value




More information about the embjopr-commits mailing list