fixed up the protocol buffers test case

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@687030 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2008-08-19 12:04:13 +00:00
parent a0ac983ea3
commit 02b9774dfc
3 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>2.0.0beta</version>
<version>2.0.0-SNAPSHOT</version>
</dependency>

View File

@ -75,6 +75,7 @@ public class PerformanceTest extends TestSupport {
int previous = cin.pushLimit(size);
//cin.setSizeLimit(size + 4);
OpenWire.Message message = OpenWire.Message.parseFrom(cin);
cin.resetBytesReadCounter();
cin.popLimit(previous);
if (verbose) {

View File

@ -23,10 +23,9 @@ import junit.framework.TestCase;
* @version $Revision: 1.1 $
*/
public class TestSupport extends TestCase {
// TODO seems like 4m messages cause Protocol Buffers to barf but 3m is fine :)
protected long messageCount = 4 * 1000 * 1000;
protected long messageCount = 10 * 1000 * 1000;
protected boolean verbose = false;
protected boolean doAssertions = true;
protected boolean doAssertions = false;
protected boolean useProducerId = false;
protected StopWatch createStopWatch(String name) {