activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1044346 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/BitArrayBinTest.java
Date Fri, 10 Dec 2010 13:22:53 GMT
Author: gtully
Date: Fri Dec 10 13:22:53 2010
New Revision: 1044346

URL: http://svn.apache.org/viewvc?rev=1044346&view=rev
Log:
validate low range default to true after window move

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/BitArrayBinTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/BitArrayBinTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/BitArrayBinTest.java?rev=1044346&r1=1044345&r2=1044346&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/BitArrayBinTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/BitArrayBinTest.java
Fri Dec 10 13:22:53 2010
@@ -25,7 +25,18 @@ public class BitArrayBinTest extends Tes
         doTestSetAroundWindow(512, 2000);
         doTestSetAroundWindow(128, 512);
     }
-       
+
+    public void testSetHiLo() throws Exception {
+        BitArrayBin toTest = new BitArrayBin(50);
+        toTest.setBit(0, true);
+        toTest.setBit(100, true);
+        toTest.setBit(150, true);
+        assertTrue("set", toTest.getBit(0));
+
+        toTest.setBit(0, true);
+        assertTrue("set", toTest.getBit(0));        
+    }
+    
     private void doTestSetAroundWindow(int window, int dataSize) throws Exception {
 
         BitArrayBin toTest = new BitArrayBin(window);



Mime
View raw message