1 22 package org.jboss.test.naming.test; 23 24 import java.util.Properties ; 25 import junit.framework.Test; 26 27 import org.jboss.test.JBossTestCase; 28 import org.jboss.test.JBossTestSuite; 29 import org.jboss.test.naming.ejb.NamingTests; 30 31 36 public class NamingStressTestCase extends JBossTestCase 37 { 38 public NamingStressTestCase(String name) 39 { 40 super(name); 41 } 42 43 public static Test suite() throws Exception 44 { 45 Properties props = new Properties (); 46 props.setProperty("ejbRunnerJndiName", "EJBTestRunnerHome"); 47 props.setProperty("encBeanJndiName", "ENCBean"); 48 props.setProperty("encIterations", "1000"); 49 JBossTestSuite testSuite = new JBossTestSuite(props); 50 testSuite.addTestSuite(NamingTests.class); 51 return getDeploySetup(testSuite, "naming.jar"); 52 } 53 54 } 55 | Popular Tags |