use of org.activityinfo.shared.command.result.AttributeGroupResult in project activityinfo by bedatadriven.
the class GetAttributeGroupsDimensionHandlerTest method testIndicatorEmpty.
// report filter population queries
@Test
@OnDataSet("/dbunit/sites-simple1.db.xml")
public void testIndicatorEmpty() throws CommandException {
// empty
AttributeGroupResult result = execute(DimensionType.Indicator, 103, 675, 5, 6);
assertThat(result.getData().size(), equalTo(0));
}
use of org.activityinfo.shared.command.result.AttributeGroupResult in project activityinfo by bedatadriven.
the class GetAttributeGroupsDimensionHandlerTest method testIndicatorLinked100.
@Test
@OnDataSet("/dbunit/sites-linked.db.xml")
public void testIndicatorLinked100() throws CommandException {
// empty
AttributeGroupResult result = execute(DimensionType.Indicator, 100);
assertThat(result.getData().size(), equalTo(0));
}
use of org.activityinfo.shared.command.result.AttributeGroupResult in project activityinfo by bedatadriven.
the class GetAttributeGroupsDimensionHandlerTest method testActivity.
// data entry filter population query
@Test
@OnDataSet("/dbunit/sites-simple1.db.xml")
public void testActivity() throws CommandException {
AttributeGroupResult result = execute(DimensionType.Activity, 1);
assertThat(result.getData().size(), equalTo(1));
assertThat(result.getData().get(0).getName(), equalTo("cause"));
}
use of org.activityinfo.shared.command.result.AttributeGroupResult in project activityinfo by bedatadriven.
the class GetAttributeGroupsDimensionHandlerTest method testIndicatorLinked2.
@Test
@OnDataSet("/dbunit/sites-linked.db.xml")
public void testIndicatorLinked2() throws CommandException {
// cause
AttributeGroupResult result = execute(DimensionType.Indicator, 2);
assertThat(result.getData().size(), equalTo(1));
assertThat(result.getData().get(0).getName(), equalTo("cause"));
}
use of org.activityinfo.shared.command.result.AttributeGroupResult in project activityinfo by bedatadriven.
the class GetAttributeGroupsDimensionHandlerTest method testIndicatorValue.
@Test
@OnDataSet("/dbunit/sites-simple1.db.xml")
public void testIndicatorValue() throws CommandException {
// cause
AttributeGroupResult result = execute(DimensionType.Indicator, 1, 2);
assertThat(result.getData().size(), equalTo(1));
assertThat(result.getData().get(0).getName(), equalTo("cause"));
}
Aggregations