Author: ozizka(a)redhat.com
Date: 2009-07-28 13:58:46 -0400 (Tue, 28 Jul 2009)
New Revision: 607
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/JBossASNodeTest.java
Log:
* JBossASNodeTest updated
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/JBossASNodeTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/JBossASNodeTest.java 2009-07-28
17:54:05 UTC (rev 606)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/JBossASNodeTest.java 2009-07-28
17:58:46 UTC (rev 607)
@@ -31,7 +31,7 @@
String jbossConfig = ejtt.getJBossConfig();
// Go to the AS node.
- String nodeText = "JBoss AS 5 ("+jbossConfig+")";
+ String nodeText = String.format(AS_NODE_NAME_FORMAT, jbossConfig);
ejtt.getNavTree().getNodeByLabel(nodeText, true).click();
@@ -39,7 +39,7 @@
String pageText = client.getPageAsText();
// Whole page contains
- String pageHeaderText = "JBoss AS 5 ("+jbossConfig+")";
+ String pageHeaderText = String.format(AS_NODE_NAME_FORMAT, jbossConfig);
//assertTrue("Page doesn't contain the header: "+headerText,
pageText.contains(headerText));
assertTrue("Content doesn't contain the header: "+pageHeaderText,
client.getElement("content").getTextContent().contains(pageHeaderText));
Show replies by date