MonitoringController.openStack("Test2","Test2", time);
MonitoringController.closeStack("Test2","Test2", time, 0, 0);
}
MonitoringMeasure measure = MonitoringController.findMeasureByName("Test");
assertEquals(1, measure.getValues().size());
TimeValue value = (TimeValue) measure.getValues().values().toArray()[0];
assertEquals(1000, value.getCallings());
assertEquals (2,MonitoringController.getAggregationsSet().size());
MeasureAggregation aggregation = MonitoringController.findAggregation("Test");
if (aggregation!=null) {
Iterator measures = aggregation.getMeasureSet().iterator();
while (measures.hasNext()) {
measure = (MonitoringMeasure)measures.next();
TimeValue rootValue = measure.getRootValue();
}
}
}