activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r687030 - in /activemq/trunk/activemq-protocol-buffer: pom.xml src/test/java/org/apache/activemq/protocolbuffer/PerformanceTest.java src/test/java/org/apache/activemq/protocolbuffer/TestSupport.java
Date Tue, 19 Aug 2008 12:04:14 GMT
Author: jstrachan
Date: Tue Aug 19 05:04:13 2008
New Revision: 687030

URL: http://svn.apache.org/viewvc?rev=687030&view=rev
Log:
fixed up the protocol buffers test case

Modified:
    activemq/trunk/activemq-protocol-buffer/pom.xml
    activemq/trunk/activemq-protocol-buffer/src/test/java/org/apache/activemq/protocolbuffer/PerformanceTest.java
    activemq/trunk/activemq-protocol-buffer/src/test/java/org/apache/activemq/protocolbuffer/TestSupport.java

Modified: activemq/trunk/activemq-protocol-buffer/pom.xml
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-protocol-buffer/pom.xml?rev=687030&r1=687029&r2=687030&view=diff
==============================================================================
--- activemq/trunk/activemq-protocol-buffer/pom.xml (original)
+++ activemq/trunk/activemq-protocol-buffer/pom.xml Tue Aug 19 05:04:13 2008
@@ -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>
 
 

Modified: activemq/trunk/activemq-protocol-buffer/src/test/java/org/apache/activemq/protocolbuffer/PerformanceTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-protocol-buffer/src/test/java/org/apache/activemq/protocolbuffer/PerformanceTest.java?rev=687030&r1=687029&r2=687030&view=diff
==============================================================================
--- activemq/trunk/activemq-protocol-buffer/src/test/java/org/apache/activemq/protocolbuffer/PerformanceTest.java
(original)
+++ activemq/trunk/activemq-protocol-buffer/src/test/java/org/apache/activemq/protocolbuffer/PerformanceTest.java
Tue Aug 19 05:04:13 2008
@@ -75,6 +75,7 @@
             int previous = cin.pushLimit(size);
             //cin.setSizeLimit(size + 4);
             OpenWire.Message message = OpenWire.Message.parseFrom(cin);
+            cin.resetBytesReadCounter();
             cin.popLimit(previous);
 
             if (verbose) {

Modified: activemq/trunk/activemq-protocol-buffer/src/test/java/org/apache/activemq/protocolbuffer/TestSupport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-protocol-buffer/src/test/java/org/apache/activemq/protocolbuffer/TestSupport.java?rev=687030&r1=687029&r2=687030&view=diff
==============================================================================
--- activemq/trunk/activemq-protocol-buffer/src/test/java/org/apache/activemq/protocolbuffer/TestSupport.java
(original)
+++ activemq/trunk/activemq-protocol-buffer/src/test/java/org/apache/activemq/protocolbuffer/TestSupport.java
Tue Aug 19 05:04:13 2008
@@ -23,10 +23,9 @@
  * @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) {



Mime
View raw message