Author: ozizka(a)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
Show replies by date