View Javadoc

1   /*
2    * $Id: StreamingSpeedMule1389TestCase.java 22451 2011-07-19 08:41:15Z 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.http.issues;
12  
13  import org.mule.tck.junit4.rule.DynamicPort;
14  import org.mule.transport.tcp.integration.AbstractStreamingCapacityTestCase;
15  import org.mule.util.SystemUtils;
16  
17  import java.util.Arrays;
18  import java.util.Collection;
19  
20  import org.junit.Rule;
21  import org.junit.runners.Parameterized.Parameters;
22  
23  public class StreamingSpeedMule1389TestCase extends AbstractStreamingCapacityTestCase
24  {
25  
26      @Rule
27      public DynamicPort dynamicPort1 = new DynamicPort("port1");
28  
29      @Rule
30      public DynamicPort dynamicPort2 = new DynamicPort("port2");
31  
32      public StreamingSpeedMule1389TestCase(ConfigVariant variant, String configResources)
33      {
34          super(variant, configResources, 100 * ONE_MB);
35      }
36  
37      @Parameters
38      public static Collection<Object[]> parameters()
39      {
40          return Arrays.asList(new Object[][]{{ConfigVariant.SERVICE, "streaming-speed-mule-1389-service.xml"},
41              {ConfigVariant.FLOW, "streaming-speed-mule-1389-flow.xml"}});
42      }
43  
44      @Override
45      protected boolean isDisabledInThisEnvironment()
46      {
47          // MULE-4713
48          return (SystemUtils.isIbmJDK() && SystemUtils.isJavaVersionAtLeast(160));
49      }
50  }