/** * Test method: long getSelect1(int i) * * @throws Exception */ public void testGetSelect1() throws Exception { BitMap instance = new BitMap(2048); ArrayList<Long> test = new ArrayList<Long>(); for (int i = 0; i < 2048; i++) { if ((int) (Math.random() * 2) == 1) { instance.setBit(i); test.add((long) i); } } for (int i = 0; i < test.size(); i++) { assertEquals(instance.getSelect1(i), (long) test.get(i)); } }