User: user57  
  Date: 01/07/05 19:29:22

  Modified:    src/main/org/jboss/test/web/test TestWebIntegration.java
  Log:
   o Changed all tests which deploy one or more jars to undeploy after
     testing.
  
  Revision  Changes    Path
  1.8       +26 -2     
jbosstest/src/main/org/jboss/test/web/test/TestWebIntegration.java
  
  Index: TestWebIntegration.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/web/test/TestWebIntegration.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TestWebIntegration.java   2001/06/12 20:55:57     1.7
  +++ TestWebIntegration.java   2001/07/06 02:29:22     1.8
  @@ -8,6 +8,7 @@
   import javax.management.RuntimeMBeanException;
   import javax.naming.InitialContext;
   
  +import junit.framework.Test;
   import junit.framework.TestCase;
   import junit.framework.TestSuite;
   
  @@ -25,7 +26,7 @@
   with a role of 'AuthorizedUser' in the servlet container.
   
   @author [EMAIL PROTECTED]
  -@version $Revision: 1.7 $
  +@version $Revision: 1.8 $
   */
   public class TestWebIntegration extends TestCase
   {
  @@ -189,8 +190,31 @@
       public static void main(java.lang.String[] args)
       {
           System.setErr(System.out);
  -        TestSuite suite = new TestSuite(TestWebIntegration.class);
  +        Test suite = suite();
           junit.textui.TestRunner.run(suite);
  +    }
  +
  +    public static Test suite() {
  +        TestSuite suite = new TestSuite();
  +     
  +        try {
  +            String filename = "../deploy/jbosstest-web.ear";
  +
  +            // deployment is done in setUp()... to complex to move out
  +            // System.out.println("Deploying...");
  +            // Deploy.deploy(filename);
  +
  +            suite.addTest(new TestSuite(TestWebIntegration.class));
  +
  +            // add a test case to undeploy our support applications
  +            suite.addTest(new Deploy.Undeployer(filename));
  +        }
  +        catch (Throwable t) {
  +            t.printStackTrace();
  +            System.exit(0);
  +        }
  +
  +        return suite;
       }
   
   }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to