@Test public void testGetParent() throws Exception { String adapterName = this.getClass().getSimpleName() + "." + getName(); Adapter adapter = createAdapter(adapterName); Adapter adapter2 = createAdapter(adapterName); Channel channel = createChannel(getName(), 0); try { AdapterManager adapterManager = new AdapterManager(adapter); AdapterManager adapterManager_2 = new AdapterManager(adapter2); ChannelManager channelManager = new ChannelManager(channel, adapterManager); assertEquals(adapterManager, channelManager.getParent()); assertTrue(adapterManager == channelManager.getParent()); assertEquals(adapterManager_2, channelManager.getParent()); assertFalse(adapterManager_2 == channelManager.getParent()); } finally { adapter.requestClose(); } }
@Override public AdapterManager getParent() { return parent; }
ChannelManager extends ComponentManagerImpl<Channel> implements ChannelManagerMBean, ChannelRuntimeManager { @Override public AdapterManager getParent() { return parent; } }
ChannelManager extends ComponentManagerImpl<Channel> implements ChannelManagerMBean, ChannelRuntimeManager { @Override public AdapterManager getParent() { return parent; } private  ChannelManager();  ChannelManager(Channel c, AdapterManager owner);   ChannelManager(Channel c, AdapterManager owner, boolean skipBackRef); }
ChannelManager extends ComponentManagerImpl<Channel> implements ChannelManagerMBean, ChannelRuntimeManager { @Override public AdapterManager getParent() { return parent; } private  ChannelManager();  ChannelManager(Channel c, AdapterManager owner);   ChannelManager(Channel c, AdapterManager owner, boolean skipBackRef); @Override ObjectName createObjectName(); @Override long requestStartTime(); @Override long requestStopTime(); @Override Collection<ObjectName> getChildren(); @Override boolean addChild(WorkflowRuntimeManager cmb); @Override boolean removeChild(WorkflowRuntimeManager cmb); @Override boolean addChildren(Collection<WorkflowRuntimeManager> coll); @Override boolean removeChildren(Collection<WorkflowRuntimeManager> coll); @Override Channel getWrappedComponent(); @Override AdapterManager getParent(); @Override boolean equals(Object o); @Override String toString(); @Override int hashCode(); @Override Collection<BaseComponentMBean> getAllDescendants(); @Override String getParentId(); @Override ObjectName getParentObjectName(); @Override String createObjectHierarchyString(); @Override Collection<ObjectName> getChildRuntimeInfoComponents(); @Override boolean addChildJmxComponent(ChildRuntimeInfoComponent comp); @Override boolean removeChildJmxComponent(ChildRuntimeInfoComponent comp); @Override void registerMBean(); @Override void unregisterMBean(); @Override ObjectName addWorkflow(String xml); @Override boolean removeWorkflow(String id); @Override void childUpdated(); @Override MBeanNotificationInfo[] getNotificationInfo(); }
ChannelManager extends ComponentManagerImpl<Channel> implements ChannelManagerMBean, ChannelRuntimeManager { @Override public AdapterManager getParent() { return parent; } private  ChannelManager();  ChannelManager(Channel c, AdapterManager owner);   ChannelManager(Channel c, AdapterManager owner, boolean skipBackRef); @Override ObjectName createObjectName(); @Override long requestStartTime(); @Override long requestStopTime(); @Override Collection<ObjectName> getChildren(); @Override boolean addChild(WorkflowRuntimeManager cmb); @Override boolean removeChild(WorkflowRuntimeManager cmb); @Override boolean addChildren(Collection<WorkflowRuntimeManager> coll); @Override boolean removeChildren(Collection<WorkflowRuntimeManager> coll); @Override Channel getWrappedComponent(); @Override AdapterManager getParent(); @Override boolean equals(Object o); @Override String toString(); @Override int hashCode(); @Override Collection<BaseComponentMBean> getAllDescendants(); @Override String getParentId(); @Override ObjectName getParentObjectName(); @Override String createObjectHierarchyString(); @Override Collection<ObjectName> getChildRuntimeInfoComponents(); @Override boolean addChildJmxComponent(ChildRuntimeInfoComponent comp); @Override boolean removeChildJmxComponent(ChildRuntimeInfoComponent comp); @Override void registerMBean(); @Override void unregisterMBean(); @Override ObjectName addWorkflow(String xml); @Override boolean removeWorkflow(String id); @Override void childUpdated(); @Override MBeanNotificationInfo[] getNotificationInfo();  }