View Javadoc

1   /*
2    * $Id: MultipleNamedTcpConnectorsTestCase.java 22522 2011-07-22 08:33:20Z justin.calleja $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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  
11  package org.mule.transport.tcp;
12  
13  import java.util.Arrays;
14  import java.util.Collection;
15  
16  import org.junit.Rule;
17  import org.junit.Test;
18  import org.junit.runners.Parameterized.Parameters;
19  import org.mule.tck.AbstractServiceAndFlowTestCase;
20  import org.mule.tck.junit4.rule.DynamicPort;
21  
22  public class MultipleNamedTcpConnectorsTestCase extends AbstractServiceAndFlowTestCase
23  {
24  
25      @Rule
26      public DynamicPort dynamicPort = new DynamicPort("port1");
27  
28      public MultipleNamedTcpConnectorsTestCase(ConfigVariant variant, String configResources)
29      {
30          super(variant, configResources);
31      }
32  
33      @Parameters
34      public static Collection<Object[]> parameters()
35      {
36          return Arrays.asList(new Object[][]{
37              {ConfigVariant.SERVICE, "multiple-named-tcp-connectors-test-service.xml"},
38              {ConfigVariant.FLOW, "multiple-named-tcp-connectors-test-flow.xml"}});
39      }
40  
41      @Test
42      public void testMultipleNamedConnectors() throws Exception
43      {
44          // no-op, the initialization must not fail.
45      }
46  
47  }