1 /* 2 * $Id: StreamingSynchCapacityTestCase.java 10489 2008-01-23 17:53:38Z dfeist $ 3 * -------------------------------------------------------------------------------------- 4 * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.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.integration; 12 13 /** 14 * Tests a model for which synchonous=true for environment (was "and connector", but that is 15 * no longer possible). 16 * 17 * Not the same as issue MULE-1687. 18 * 19 * This will happily send 1GB while running in significantly less memory, but it takes some time. 20 * Since I'd like this to run in CI I will set at 100MB and test memory delta. But since memory usage 21 * could be around that anyway, this is may be a little unreliable. And there's no way to 22 * measure memory use directly in 1.4. We'll see... 23 * 24 * IMPORTANT - DO NOT RUN THIS TEST IN AN IDE WITH LOG LEVEL OF DEBUG. USE INFO TO SEE 25 * DIAGNOSTICS. OTHERWISE THE CONSOLE OUTPUT WILL BE SIMILAR SIZE TO DATA TRANSFERRED, 26 * CAUSING CONFUSNG AND PROBABLY FATAL MEMORY USE. 27 */ 28 public class StreamingSynchCapacityTestCase extends AbstractStreamingCapacityTestCase 29 { 30 31 public StreamingSynchCapacityTestCase() 32 { 33 super(100 * ONE_MB, "tcp://localhost:65432"); 34 } 35 36 protected String getConfigResources() 37 { 38 return "tcp-streaming2-test.xml"; 39 } 40 41 }