@Test public void testApplyService_WithConnections_NoRewrite() throws Exception { String adapterName = this.getClass().getSimpleName() + "." + getName(); Adapter adapter = createAdapter(adapterName, 2, 2); adapter.getSharedComponents().addConnection(new NullConnection(getName())); List<BaseComponentMBean> mBeans = createJmxManagers(adapter); ObjectName objectName = createComponentCheckerObjectName(adapterName); register(mBeans); AdapterComponentCheckerMBean manager = JMX.newMBeanProxy(mBeanServer, objectName, AdapterComponentCheckerMBean.class); AdaptrisMessage msg = new DefaultSerializableMessageTranslator() .translate(manager.applyService(createConnectedServices(null), createSerializableMessage(), false)); assertTrue(msg.containsKey("key")); assertEquals("value", msg.getMetadataValue("key")); }
@Override public SerializableMessage applyService(String xml, SerializableMessage serializedMsg) throws CoreException { return applyService(xml, serializedMsg, true); }
AdapterComponentChecker extends ChildRuntimeInfoComponentImpl implements AdapterComponentCheckerMBean { @Override public SerializableMessage applyService(String xml, SerializableMessage serializedMsg) throws CoreException { return applyService(xml, serializedMsg, true); } }
AdapterComponentChecker extends ChildRuntimeInfoComponentImpl implements AdapterComponentCheckerMBean { @Override public SerializableMessage applyService(String xml, SerializableMessage serializedMsg) throws CoreException { return applyService(xml, serializedMsg, true); } private  AdapterComponentChecker();  AdapterComponentChecker(AdapterManager owner); }
AdapterComponentChecker extends ChildRuntimeInfoComponentImpl implements AdapterComponentCheckerMBean { @Override public SerializableMessage applyService(String xml, SerializableMessage serializedMsg) throws CoreException { return applyService(xml, serializedMsg, true); } private  AdapterComponentChecker();  AdapterComponentChecker(AdapterManager owner); @Override RuntimeInfoComponent getParentRuntimeInfoComponent(); @Override void checkInitialise(String xml); @Override SerializableMessage applyService(String xml, SerializableMessage serializedMsg); @Override SerializableMessage applyService(String xml, SerializableMessage serializedMsg, boolean rewriteConnections); }
AdapterComponentChecker extends ChildRuntimeInfoComponentImpl implements AdapterComponentCheckerMBean { @Override public SerializableMessage applyService(String xml, SerializableMessage serializedMsg) throws CoreException { return applyService(xml, serializedMsg, true); } private  AdapterComponentChecker();  AdapterComponentChecker(AdapterManager owner); @Override RuntimeInfoComponent getParentRuntimeInfoComponent(); @Override void checkInitialise(String xml); @Override SerializableMessage applyService(String xml, SerializableMessage serializedMsg); @Override SerializableMessage applyService(String xml, SerializableMessage serializedMsg, boolean rewriteConnections);  }