use of org.activityinfo.shared.report.model.AttributeGroupDimension in project activityinfo by bedatadriven.
the class GeneratePivotTableHandlerTest method withNullAttribute.
@Test
public void withNullAttribute() throws CommandException {
PivotTableReportElement element = new PivotTableReportElement();
element.setRowDimensions(Arrays.asList(new Dimension(DimensionType.Indicator)));
element.setColumnDimensions(Arrays.asList((Dimension) new AttributeGroupDimension(1)));
Filter filter = new Filter();
filter.addRestriction(DimensionType.Indicator, Arrays.asList(1, 2, 103));
element.setFilter(filter);
execute(new GeneratePivotTable(element));
}
Aggregations