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

embjopr-commits at lists.jboss.org embjopr-commits at lists.jboss.org
Fri Jun 5 09:46:55 EDT 2009


Author: ozizka at redhat.com
Date: 2009-06-05 09:46:55 -0400 (Fri, 05 Jun 2009)
New Revision: 503

Modified:
   trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/embwar/EmbWarTest.java
Log:
EmbWarTest updated.

Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/embwar/EmbWarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/embwar/EmbWarTest.java	2009-06-05 13:39:21 UTC (rev 502)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/embwar/EmbWarTest.java	2009-06-05 13:46:55 UTC (rev 503)
@@ -41,7 +41,8 @@
 			embWarNode.getLabelLink().click();
 
 			// Check that the embedded WAR is listed.
-			ContentTableRow embWarLink = ejtt.tabMenu.getTabContentBox().findLinkRowInDataTableUsingPagination(EAR_WITH_WAR_EMB__WAR_NAME);
+			ContentTableRow embWarLink = ejtt.tabMenu.getTabContentBox()
+							.findLinkRowInDataTableUsingPagination(EAR_WITH_WAR_EMB__WAR_NAME);
 			if( null == embWarLink )
 				throw new EmbJoprTestException("Embedded WAR '"+EAR_WITH_WAR_EMB__WAR_NAME+"' not listed.");
 
@@ -49,8 +50,11 @@
 
 		}
 		finally {
-			// Undeploy the EAR.
-			ejtt.deployment.undeployViaEmbJopr(APP_TYPE, DEPLOYABLE_NAME);
+			try {
+				ejtt.deployment.undeployViaEmbJopr(APP_TYPE, DEPLOYABLE_NAME);
+			}catch( Exception ex ){
+				log.error("Caught exception when undeploying: "+ex, ex);
+			}
 		}
 	}// testEarWithEmbWarDeployment()
 




More information about the embjopr-commits mailing list