verifyLastSales(hTable, processor, FORD, new int[] {40, 32, 28, 24, 22});
verifyLastSales(hTable, processor, TOYOTA, new int[] {224, 204, 212, 202});
}
private static void recordSale(HTable hTable, byte[] company, int price) throws InterruptedException, IOException {
Put put = new HutPut(company);
put.add(SALE_CF, Bytes.toBytes("lastPrice0"), Bytes.toBytes(price));
Thread.sleep(1); // sanity interval
hTable.put(put);
}