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.http.issues;
8   
9   import org.mule.tck.junit4.rule.DynamicPort;
10  import org.mule.transport.tcp.integration.AbstractStreamingCapacityTestCase;
11  import org.mule.util.SystemUtils;
12  
13  import org.junit.Rule;
14  
15  public class StreamingSpeedMule1389TestCase extends AbstractStreamingCapacityTestCase
16  {
17  
18      @Rule
19      public DynamicPort dynamicPort1 = new DynamicPort("port1");
20  
21      @Rule
22      public DynamicPort dynamicPort2 = new DynamicPort("port2");
23  
24      public StreamingSpeedMule1389TestCase()
25      {
26          super(100 * ONE_MB);
27      }
28  
29      @Override
30      protected boolean isDisabledInThisEnvironment()
31      {
32          // MULE-4713
33          return (SystemUtils.isIbmJDK() && SystemUtils.isJavaVersionAtLeast(160));
34      }
35  
36      @Override
37      protected String getConfigResources()
38      {
39          return "streaming-speed-mule-1389.xml";
40      }
41  
42  }