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

  Modified:    src/main/org/jboss/test/security/test TestEJBSpec.java
  Log:
   o Changed all tests which deploy one or more jars to undeploy after
     testing.
  
  Revision  Changes    Path
  1.7       +29 -2     jbosstest/src/main/org/jboss/test/security/test/TestEJBSpec.java
  
  Index: TestEJBSpec.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/security/test/TestEJBSpec.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestEJBSpec.java  2001/06/22 04:31:43     1.6
  +++ TestEJBSpec.java  2001/07/06 02:29:21     1.7
  @@ -11,11 +11,17 @@
   import org.jboss.test.security.interfaces.StatelessSession;
   import org.jboss.test.security.interfaces.StatelessSessionHome;
   
  +import junit.framework.Test;
  +import junit.framework.TestCase;
  +import junit.framework.TestSuite;
  +
  +import org.jboss.test.util.Deploy;
  +
   /** Test of EJB spec conformace using the security-spec.jar
   deployment unit. These test the basic role based access model.
   
   @author [EMAIL PROTECTED]
  -@version $Revision: 1.6 $
  +@version $Revision: 1.7 $
   */
   public class TestEJBSpec extends junit.framework.TestCase
   {
  @@ -32,7 +38,7 @@
   
       protected void setUp() throws Exception
       {
  -     Deploy.deploy("security-spec.jar");
  +        // Deploy.deploy("security-spec.jar");
       }
   
       /** Test that:
  @@ -247,5 +253,26 @@
               loggedIn = false;
               lc.logout();
           }
  +    }
  +
  +    public static Test suite() {
  +        TestSuite suite = new TestSuite();
  +     
  +        try {
  +            String filename = "security-spec.jar";
  +            System.out.println("Deploying...");
  +            Deploy.deploy(filename);
  +
  +            suite.addTest(new TestSuite(TestEJBSpec.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