Properties props = new Properties();
props.setProperty("ejbRunnerJndiName", "EJBTestRunnerHome");
props.setProperty("encBeanJndiName", "ENCBean");
props.setProperty("encIterations", "1000");
JBossTestSuite testSuite = new JBossTestSuite(props);
JBossTestSetup test = new JBossTestSetup(new TestSuite(NamingTests.class))
{
protected void setUp() throws Exception
{
super.setUp();
JMSDestinationsUtil.setupBasicDestinations();
deploy ("naming.jar");
}
protected void tearDown() throws Exception
{
super.tearDown();
undeploy ("naming.jar");
JMSDestinationsUtil.destroyDestinations();
}
};
testSuite.addTest(test);
return testSuite;
}