//Since the dependencies are not there, we get an exception...
}
try
{
MBeanServerConnection server = getServer();
ObjectName testerName = new ObjectName("jboss.aop:name=BeanWithDependency");
try
{
server.getMBeanInfo(testerName);
fail(testerName + " should not have been found");
}
catch (InstanceNotFoundException expected)
{
}
deploy("aop-mc-jmxtest-dependency.jar");
try
{
server.setAttribute(testerName, new Attribute("Property", 42));
assertEquals(42, server.getAttribute(testerName, "Property"));
String ret = (String)server.invoke(testerName, "someAction", new Object[0], new String[0]);
assertNotNull(ret);
assertEquals("true", ret);
}
finally
{
undeploy("aop-mc-jmxtest-dependency.jar");
}
try
{
server.getMBeanInfo(testerName);
fail(testerName + " should not have been found");
}
catch (InstanceNotFoundException expected)
{
}