From 5b5d60f9d19ee61ea9653b8a065e6b4636467159 Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Fri, 10 Dec 2010 13:22:53 +0000 Subject: [PATCH] validate low range default to true after window move git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1044346 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/util/BitArrayBinTest.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/util/BitArrayBinTest.java b/activemq-core/src/test/java/org/apache/activemq/util/BitArrayBinTest.java index 0c0d3e7c91..e1276d88be 100644 --- a/activemq-core/src/test/java/org/apache/activemq/util/BitArrayBinTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/util/BitArrayBinTest.java @@ -25,7 +25,18 @@ public class BitArrayBinTest extends TestCase { 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);