1
2
3
4
5
6
7
8
9
10
11 package org.mule.test.integration.client;
12
13 import org.mule.module.client.remoting.RemoteDispatcherAgent;
14 import org.mule.tck.FunctionalTestCase;
15 import org.mule.transformer.wire.SerializedMuleMessageWireFormat;
16
17 public class RemoteDispatcherAgentConfigTestCase extends FunctionalTestCase
18 {
19 protected String getConfigResources()
20 {
21 return "org/mule/test/integration/client/mule-admin-agent.xml";
22 }
23
24 public void testNonEmptyProperties() throws Exception
25 {
26 RemoteDispatcherAgent agent = (RemoteDispatcherAgent) muleContext.getRegistry().lookupAgent("remote-dispatcher-agent");
27 assertNotNull(agent.getEndpoint());
28 assertEquals("test://12345",agent.getEndpoint().getEndpointURI().toString());
29 assertNotNull(agent.getWireFormat());
30 assertTrue(agent.getWireFormat() instanceof SerializedMuleMessageWireFormat);
31 }
32
33 }