Author: ozizka(a)redhat.com
Date: 2009-05-21 10:47:23 -0400 (Thu, 21 May 2009)
New Revision: 475
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war/WarTest.java
Log:
testWarWithVirtualHosts() updated
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war/WarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war/WarTest.java 2009-05-21
14:04:17 UTC (rev 474)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war/WarTest.java 2009-05-21
14:47:23 UTC (rev 475)
@@ -158,17 +158,25 @@
ejtt.navTree.waitUntilNodeLoadedByAjax(NAV_VIRTUAL_HOSTS, 1000, 6);
ejtt.navTree.getNodeByLabel(NAV_VIRTUAL_HOSTS).getLabelLink().click();
+
+ final String VHOST_1 = "snert.home.pilhuhn.de";
+ final String VHOST_2 = "snert.home.bsd.de";
+
// Check that vhosts from the WARare listed.
ContentTableRow row = ejtt.tabMenu.getTabContentBox().
- getDefaultTable().getFirstRowContainingLink("snert.home.pilhuhn.de");
+ getDefaultTable().getFirstRowContainingLink(VHOST_1);
if( null == row )
- throw new EmbJoprTestException("Vhost 'snert.home.pilhuhn.de' is not
listed.", this);
+ throw new EmbJoprTestException("Vhost '"+VHOST_1+"' is not
listed.", this);
row = ejtt.tabMenu.getTabContentBox().
- getDefaultTable().getFirstRowContainingLink("snert.home.bsd.de");
+ getDefaultTable().getFirstRowContainingLink(VHOST_2);
if( null == row )
- throw new EmbJoprTestException("Vhost 'snert.home.bsd.de' is not
listed.", this);
+ throw new EmbJoprTestException("Vhost '"+VHOST_2+"' is not
listed.", this);
+ // Expand the Virtual Hosts node
+ ejtt.navTree.getNodeByLabel(NAV_VIRTUAL_HOSTS).getArrowLink().click();
+ ejtt.navTree.getNodeByLabel(VHOST_1, true); // Throws if not found
+ ejtt.navTree.getNodeByLabel(VHOST_2, true); // Throws if not found
}
Show replies by date