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.integration; 8 9 import org.mule.tck.junit4.rule.DynamicPort; 10 11 import org.junit.Rule; 12 13 /** 14 * This will happily send 1GB while running in significantly less memory, but it takes some time. 15 * Since I'd like this to run in CI I will set at 100MB and test memory delta. But since memory usage 16 * could be around that anyway, this is may be a little unreliable. And there's no way to 17 * measure memory use directly in 1.4. We'll see... 18 * 19 * IMPORTANT - DO NOT RUN THIS TEST IN AN IDE WITH LOG LEVEL OF DEBUG. USE INFO TO SEE 20 * DIAGNOSTICS. OTHERWISE THE CONSOLE OUTPUT WILL BE SIMILAR SIZE TO DATA TRANSFERRED, 21 * CAUSING CONFUSNG AND PROBABLY FATAL MEMORY USE. 22 */ 23 public class StreamingCapacityTestCase extends AbstractStreamingCapacityTestCase 24 { 25 @Rule 26 public DynamicPort dynamicPort1 = new DynamicPort("port1"); 27 28 @Rule 29 public DynamicPort dynamicPort2 = new DynamicPort("port2"); 30 31 public StreamingCapacityTestCase() 32 { 33 super(10 * ONE_GB); 34 } 35 36 @Override 37 protected String getConfigResources() 38 { 39 return "tcp-streaming-test.xml"; 40 } 41 42 } 43