User: starksm
Date: 01/07/08 18:06:06
Modified: src/main/org/jboss/test/security/test Tag: Branch_2_4
TestEJBSpec.java
Log:
Merge latest changes from main to the 2.4 branch
Revision Changes Path
No revision
No revision
1.6.2.1 +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.6.2.1
diff -u -r1.6 -r1.6.2.1
--- TestEJBSpec.java 2001/06/22 04:31:43 1.6
+++ TestEJBSpec.java 2001/07/09 01:06:06 1.6.2.1
@@ -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.6.2.1 $
*/
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