public void testBigMinCalculation3Dim(){
  final byte[] searchMinZOrder={Byte.valueOf("00000000",2),Byte.valueOf("00000000",2),Byte.valueOf("00010011",2)};
  final byte[] searchMaxZOrder={Byte.valueOf("00000000",2),Byte.valueOf("00000000",2),Byte.valueOf("00010111",2)};
  final ZOrderRangeScanUtil rangeScanUtil=new ZOrderRangeScanUtil(searchMinZOrder,searchMaxZOrder,3);
  final byte[] dividingRecord={Byte.valueOf("00000000",2),Byte.valueOf("00000000",2),Byte.valueOf("00010101",2)};
  assertFalse(rangeScanUtil.isInSearchRange(dividingRecord));
  final byte[] bigMinAct=rangeScanUtil.calculateBigMin(dividingRecord);
  assertTrue(rangeScanUtil.isInSearchRange(bigMinAct));
  assertEquals(searchMaxZOrder,bigMinAct);
}

public void testBigMinCalculation3Dim ( ) { final byte [ ] searchMinZOrder = { Byte . valueOf ( "00000000" , 2 ) , Byte . valueOf ( "00000000" , 2 ) , Byte . valueOf ( "00010011" , 2 ) } ; final byte [ ] searchMaxZOrder = { Byte . valueOf ( "00000000" , 2 ) , Byte . valueOf ( "00000000" , 2 ) , Byte . valueOf ( "00010111" , 2 ) } ; final ZOrderRangeScanUtil rangeScanUtil = new ZOrderRangeScanUtil ( searchMinZOrder , searchMaxZOrder , 3 ) ; final byte [ ] dividingRecord = { Byte . valueOf ( "00000000" , 2 ) , Byte . valueOf ( "00000000" , 2 ) , Byte . valueOf ( "00010101" , 2 ) } ; assertFalse ( rangeScanUtil . isInSearchRange ( dividingRecord ) ) ; final byte [ ] bigMinAct = rangeScanUtil . calculateBigMin ( dividingRecord ) ; assertTrue ( rangeScanUtil . isInSearchRange ( bigMinAct ) ) ; assertEquals ( searchMaxZOrder , bigMinAct ) ; }
test for bigmin calculation in a three - dimensional setting .
