mirror of https://github.com/apache/activemq.git
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:
parent
6ed942a3ee
commit
5b5d60f9d1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue