Search in sources :

Example 6 with AttributeGroupDimension

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));
}
Also used : Dimension(org.activityinfo.shared.report.model.Dimension) AttributeGroupDimension(org.activityinfo.shared.report.model.AttributeGroupDimension) PivotTableReportElement(org.activityinfo.shared.report.model.PivotTableReportElement) AttributeGroupDimension(org.activityinfo.shared.report.model.AttributeGroupDimension) Test(org.junit.Test)

Aggregations

AttributeGroupDimension (org.activityinfo.shared.report.model.AttributeGroupDimension)6 Dimension (org.activityinfo.shared.report.model.Dimension)5 PivotTableReportElement (org.activityinfo.shared.report.model.PivotTableReportElement)3 Test (org.junit.Test)3 ReportChangeEvent (org.activityinfo.client.page.report.ReportChangeEvent)2 AdminDimension (org.activityinfo.shared.report.model.AdminDimension)2 MonthBundler (org.activityinfo.shared.command.handler.pivot.bundler.MonthBundler)1 MySqlYearWeekBundler (org.activityinfo.shared.command.handler.pivot.bundler.MySqlYearWeekBundler)1 QuarterBundler (org.activityinfo.shared.command.handler.pivot.bundler.QuarterBundler)1 YearBundler (org.activityinfo.shared.command.handler.pivot.bundler.YearBundler)1 ActivityDTO (org.activityinfo.shared.dto.ActivityDTO)1 DateDimension (org.activityinfo.shared.report.model.DateDimension)1