Author: smcgowan(a)redhat.com
Date: 2009-04-30 23:16:50 -0400 (Thu, 30 Apr 2009)
New Revision: 371
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/EarTest.java
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/WarTest.java
Log:
revert addition of <HtmlElement> in front of Page#getHtmlElementById() which was
causing build to fail
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/EarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/EarTest.java 2009-05-01
00:56:53 UTC (rev 370)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/EarTest.java 2009-05-01
03:16:50 UTC (rev 371)
@@ -824,7 +824,7 @@
page = (HtmlPage) page.refresh();
// Get the counter number.
- Integer count1 =
NumberUtils.createInteger(page.getBody().<HtmlElement>getHtmlElementById("count").getTextContent());
+ Integer count1 =
NumberUtils.createInteger(page.getBody().getHtmlElementById("count").getTextContent());
@@ -874,7 +874,7 @@
assertTrue(page.asText().contains("HELLO WORLD"));
// Get the counter number.
- Integer count2 =
NumberUtils.createInteger(page.getBody().<HtmlElement>getHtmlElementById("count").getTextContent());
+ Integer count2 =
NumberUtils.createInteger(page.getBody().getHtmlElementById("count").getTextContent());
assertTrue( "Counter is reset upon app restart, thus should be lower
after.", count1 > count2 );
@@ -932,7 +932,7 @@
page = (HtmlPage) page.refresh();
// Get the counter number.
- Integer count1 =
NumberUtils.createInteger(page.getBody().<HtmlElement>getHtmlElementById("count").getTextContent());
+ Integer count1 =
NumberUtils.createInteger(page.getBody().getHtmlElementById("count").getTextContent());
@@ -962,7 +962,7 @@
assertTrue(page.asText().contains("HELLO WORLD"));
// Get the counter number.
- Integer count2 =
NumberUtils.createInteger(page.getBody().<HtmlElement>getHtmlElementById("count").getTextContent());
+ Integer count2 =
NumberUtils.createInteger(page.getBody().getHtmlElementById("count").getTextContent());
assertTrue( "Counter is reset upon app restart, thus should be lower
after.", count1 > count2 );
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/WarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/WarTest.java 2009-05-01
00:56:53 UTC (rev 370)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/WarTest.java 2009-05-01
03:16:50 UTC (rev 371)
@@ -880,7 +880,7 @@
page = (HtmlPage) page.refresh();
// Get the counter number.
- String count1text =
page.getBody().<HtmlElement>getHtmlElementById("count").getTextContent();
+ String count1text =
page.getBody().getHtmlElementById("count").getTextContent();
Integer count1 = NumberUtils.createInteger( count1text );
@@ -925,7 +925,7 @@
assertTrue(page.asText().contains("HELLO WORLD"));
// Get the counter number.
- String count2text =
page.getBody().<HtmlElement>getHtmlElementById("count").getTextContent();
+ String count2text =
page.getBody().getHtmlElementById("count").getTextContent();
Integer count2 = NumberUtils.createInteger( count2text );
assertTrue( "Counter is reset upon app restart, thus should be lower after.
" +
@@ -980,7 +980,7 @@
page = (HtmlPage) page.refresh();
// Get the counter number.
- String count1text =
page.getBody().<HtmlElement>getHtmlElementById("count").getTextContent();
+ String count1text =
page.getBody().getHtmlElementById("count").getTextContent();
Integer count1 = NumberUtils.createInteger( count1text );
@@ -1008,7 +1008,7 @@
assertTrue(page.asText().contains("HELLO WORLD"));
// Get the counter number.
- String count2text =
page.getBody().<HtmlElement>getHtmlElementById("count").getTextContent();
+ String count2text =
page.getBody().getHtmlElementById("count").getTextContent();
Integer count2 = NumberUtils.createInteger( count2text );
assertTrue( "Counter is reset upon app restart, thus should be lower after.
" +
Show replies by date