1   /*
2    * $Id: MulticastNamespaceHandlerTestCase.java 10489 2008-01-23 17:53:38Z dfeist $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  package org.mule.transport.multicast;
11  
12  import org.mule.tck.FunctionalTestCase;
13  import org.mule.transport.multicast.MulticastConnector;
14  
15  /**
16   * TODO
17   */
18  public class MulticastNamespaceHandlerTestCase extends FunctionalTestCase
19  {
20      protected String getConfigResources()
21      {
22          return "multicast-namespace-config.xml";
23      }
24  
25      public void testConfig() throws Exception
26      {
27          MulticastConnector c = (MulticastConnector)muleContext.getRegistry().lookupConnector("multicastConnector");
28          assertNotNull(c);
29  
30          assertEquals(1234, c.getReceiveBufferSize());
31          assertEquals(2345, c.getReceiveTimeout());
32          assertEquals(3456, c.getSendBufferSize());
33          assertEquals(4567, c.getSendTimeout());
34          assertEquals(5678, c.getTimeToLive());
35          assertEquals(true, c.isBroadcast());
36          assertEquals(true, c.isLoopback());
37          assertEquals(false, c.isKeepSendSocketOpen());
38          assertTrue(c.isConnected());
39          assertTrue(c.isStarted());
40      }
41  
42  }