View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.transport.tcp.issues;
8   
9   import org.mule.transport.tcp.TcpConnector;
10  import org.mule.transport.tcp.TcpFunctionalTestCase;
11  
12  import org.junit.Test;
13  
14  import static org.junit.Assert.assertTrue;
15  
16  /**
17   * This is just to check that the Boolean (rather than boolean) doesn't cause any problems
18   */
19  public class ReuseMule2069TestCase extends TcpFunctionalTestCase
20  {
21  
22      @Override
23      protected String getConfigResources()
24      {
25          return "reuse-mule-2069.xml";
26      }
27  
28      @Test
29      public void testReuseSetOnConnector()
30      {
31          assertTrue(((TcpConnector) muleContext.getRegistry().lookupConnector(TcpConnector.TCP)).isReuseAddress().booleanValue());
32      }
33      
34  }