Author: ozizka(a)redhat.com
Date: 2009-07-30 14:53:34 -0400 (Thu, 30 Jul 2009)
New Revision: 636
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java
Log:
* EarTest updated.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java 2009-07-30
18:46:53 UTC (rev 635)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java 2009-07-30
18:53:34 UTC (rev 636)
@@ -798,8 +798,10 @@
final String DEPLOYABLE_NAME = EAR_WITH_WAR;
// Deploy the EAR.
- String earFilePath = ejtt.getTestDataDir() + "/ear/"+DEPLOYABLE_NAME;
- deployEar( earFilePath );
+ //String earFilePath = ejtt.getTestDataDir() + "/ear/"+DEPLOYABLE_NAME;
+ String earFilePath = ejtt.getTestFilePath(APP_TYPE, DEPLOYABLE_NAME);
+ //deployEar( earFilePath );
+ ejtt.deployment.deployViaEmbJopr(APP_TYPE, earFilePath);
// Get the HTTP port and the URL of the test page.
HttpServletRequest tmpRequest =
(HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
@@ -827,7 +829,8 @@
}
finally {
try {
- undeployEar(DEPLOYABLE_NAME);
+ //undeployEar(DEPLOYABLE_NAME);
+ ejtt.deployment.undeployViaEmbJopr(APP_TYPE, DEPLOYABLE_NAME);
}catch( Exception ex ){
log.error("Caught an exception when undeploying: "+ex, ex);
}
Show replies by date