From: Scott M S. <st...@us...> - 2005-01-20 09:08:58
|
User: starksm Date: 05/01/20 01:08:49 Modified: src/main/org/jboss/test JBossTestCase.java Log: Add a delegate reinit method and a test jar redeploy method. Revision Changes Path 1.28 +24 -1 jbosstest/src/main/org/jboss/test/JBossTestCase.java Index: JBossTestCase.java =================================================================== RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/JBossTestCase.java,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- JBossTestCase.java 19 Jan 2005 13:24:36 -0000 1.27 +++ JBossTestCase.java 20 Jan 2005 09:08:49 -0000 1.28 @@ -30,7 +30,7 @@ * * @author <a href="mailto:d_j...@us...">David Jencks</a> * @author Sco...@jb... - * @version $Revision: 1.27 $ + * @version $Revision: 1.28 $ */ public class JBossTestCase extends TestCase @@ -72,6 +72,17 @@ log.error("Failed to init delegate", e); } } + public void resetDelegate() + { + try + { + delegate.reinit(); + } + catch(Exception e) + { + log.error("Failed to init delegate", e); + } + } // Public -------------------------------------------------------- @@ -193,6 +204,18 @@ } /** + * Redeploy a package with the main deployer. The supplied name is + * interpreted as a url, or as a filename in jbosstest.deploy.lib or ../lib. + * + * @param name filename/url of package to deploy. + * @exception Exception Description of Exception + */ + protected void redeploy(String name) throws Exception + { + delegate.redeploy(name); + } + + /** * Undeploy a package with the main deployer. The supplied name is * interpreted as a url, or as a filename in jbosstest.deploy.lib or ../lib. * |