I have changed a few things.
Now there is a particular test case class for each tested module and
DeploymentDependencyTestCase has been changed to AbstractDeploymentDependencyTestCase:
package org.jboss.test.deployers_jbas5349.test;
| public abstract class AbstractDeploymentDependencyTestCase
| extends JBossTestCase
| {
| ...
package org.jboss.test.deployers_jbas5349.test;
| public class EJB3DummyStatelessTestCase
| extends AbstractDeploymentDependencyTestCase
| {
| public EJB3DummyStatelessTestCase(String name)
| {
| super(name);
| }
| }
The tests are started from build.xml this way:
...
| <create-profileservice-config baseconf="all"
conf="deploymentdependencyserviceA"/>
| <server:config>
| <server name="deploymentdependencyserviceA">
| <jvmarg value="-Djbosstest.deploy.dir=${build.lib}" />
| <jvmarg
value="-Ddeployment.dependency.test.module=deploymentdependency-ejb3-dummystateless.jar"
/>
| </server>
| </server:config>
| <server:start name="deploymentdependencyserviceA"/>
| <antcall target="test-deployment-dependency-mbean-state">
| <param name="test-class-name"
value="EJB3DummyStatelessTestCase"/>
| </antcall>
| <server:stop name="deploymentdependencyserviceA"/>
| <create-profileservice-config baseconf="all"
conf="deploymentdependencyserviceB"/>
| <server:config>
| <server name="deploymentdependencyserviceB">
| <jvmarg value="-Djbosstest.deploy.dir=${build.lib}" />
| <jvmarg
value="-Ddeployment.dependency.test.module=deploymentdependency-ejb3-dummystateful.jar"
/>
| </server>
| </server:config>
| <server:start name="deploymentdependencyserviceB"/>
| <antcall target="test-deployment-dependency-mbean-state">
| <param name="test-class-name"
value="EJB3DummyStatefulTestCase"/>
| </antcall>
| <server:stop name="deploymentdependencyserviceB"/>
| ...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177589#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...