@Test public void testResultRowsets() throws ParseException { List<UUDIRowSet> rss = parsedOrders.getRowsets(); UUDIRowSet rs = rss.get(0); assertEquals(23069, rs.getTypeId()); assertEquals(10000030, rs.getRegionId()); assertEquals(dateFmt.parse("28/08/2013 15:46:14 GMT"), rs.getGeneratedAt()); }
@Test public void testResultrows() throws ParseException { List<UUDIRowSet> rss = parsedOrders.getRowsets(); UUDIRowSet rs = rss.get(0); UUDIHistory history = (UUDIHistory) rs.getRows().get(0); assertEquals(dateFmt.parse("01/07/2012 00:00:00 GMT"), history.getDate()); assertEquals(7, history.getOrders()); assertEquals(12, history.getQuantity()); assertEquals(new BigDecimal("45000000.0"), history.getLow()); assertEquals(new BigDecimal("45799999.9900000021"), history.getHigh()); assertEquals(new BigDecimal("45133333.3316000029"), history.getAverage()); }