[jboss-dev] deployers + failing bootstrap test
Ales Justin
ales.justin at gmail.com
Tue Oct 7 08:43:08 EDT 2008
While testing new MC releases, I saw
[junit] Running
org.jboss.test.deployers.jbas5349.test.BootstrapDependenciesTestCase
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,562 sec
[junit] Test
org.jboss.test.deployers.jbas5349.test.BootstrapDependenciesTestCase FAILED
when testing deployers (build test -Dtest=deployer) with profileservice
config.
Looking at BootstrapDependenciesTestCase,
I don't see that it deploys anything,
but expects some MBean to be present:
public class BootstrapDependenciesTestCase
extends JBossTestCase
{
protected static Logger staticLog =
Logger.getLogger(BootstrapDependenciesTestCase.class);
// Constants -----------------------------------------------------
public final static String bootstrapDependenciesTestMBeanName =
"org.jboss.test.deployers.jbas5349.sar.bootstrap.dependencies.test:service=BootstrapDependenciesTest";
public final static int expectedMBeanState = 3;
public BootstrapDependenciesTestCase(String name)
{
super(name);
}
/**
* Tests the status of deployment of testing SAR.
* If it fails, probably the deployment of a tested module included
in the SAR fails.
* See details in server's log.
*
* @throws Exception Description of Exception
*/
public void testDeploymentStatus() throws Exception
{
assertEquals(expectedMBeanState, checkMBeanState());
}
/**
* Checks the state of testing MBean.
*
* @exception Exception Description of Exception
*/
protected int checkMBeanState() throws Exception
{
Object state = invoke(new
ObjectName(bootstrapDependenciesTestMBeanName), "getState", null, null);
staticLog.debug("state=" + state);
return ((Integer) state).intValue();
}
}
Ivo, how is this supposed to work?
More information about the jboss-development
mailing list