use of com.adaptris.core.runtime.ChildRuntimeInfoComponent in project interlok by adaptris.
the class StatisticsMBeanCase method testStandardGetters.
@Test
public void testStandardGetters() throws Exception {
String adapterName = this.getClass().getSimpleName() + "." + getName();
Adapter adapter = createAdapter(adapterName);
AdapterManager am = new AdapterManager(adapter);
try {
start(adapter);
am.registerMBean();
Collection<BaseComponentMBean> children = am.getAllDescendants();
for (BaseComponentMBean bean : children) {
assertNotNull(bean.createObjectName());
if (bean instanceof ChildRuntimeInfoComponent) {
assertNotNull(((ChildRuntimeInfoComponent) bean).getParentId());
assertNotNull(((ChildRuntimeInfoComponent) bean).getParentObjectName());
assertNotNull(((ChildRuntimeInfoComponent) bean).getParentRuntimeInfoComponent());
}
}
} finally {
stop(adapter);
am.unregisterMBean();
}
}
Aggregations