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
This commit is contained in:
Gary Tully 2010-12-10 13:22:53 +00:00
parent 6ed942a3ee
commit 5b5d60f9d1
1 changed files with 12 additions and 1 deletions

View File

@ -26,6 +26,17 @@ public class BitArrayBinTest extends TestCase {
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);