use of org.dashbuilder.dataset.DataSet in project kie-wb-common by kiegroup.
the class ContributorsDashboardTest method testDayOfWeekSelector.
@Test
public void testDayOfWeekSelector() {
Displayer displayer = presenter.getDayOfWeekSelectorDisplayer();
DataSet dataSet = displayer.getDataSetHandler().getLastDataSet();
assertDataSetValues(dataSet, new String[][] { { "1", "0.00" }, { "2", "0.00" }, { "3", "2.00" }, { "4", "1.00" }, { "5", "1.00" }, { "6", "2.00" }, { "7", "2.00" } }, 0);
}
use of org.dashbuilder.dataset.DataSet in project kie-wb-common by kiegroup.
the class ContributorsDashboardTest method testSelectYear.
@Test
public void testSelectYear() throws Exception {
// "2019" selected
yearsSelectorDisplayer.filterUpdate(COLUMN_DATE, 0);
DataSet dataSet = allCommitsDisplayer.getDataSetHandler().getLastDataSet();
assertEquals(dataSet.getRowCount(), 7);
}
use of org.dashbuilder.dataset.DataSet in project kie-wb-common by kiegroup.
the class ContributorsDashboardTest method testYearsSelector.
@Test
public void testYearsSelector() {
Displayer displayer = presenter.getYearsSelectorDisplayer();
DataSet dataSet = displayer.getDataSetHandler().getLastDataSet();
assertDataSetValues(dataSet, new String[][] { { "2019", "7.00" }, { "2020", "1.00" } }, 0);
}
use of org.dashbuilder.dataset.DataSet in project kie-wb-common by kiegroup.
the class ProjectMetricsScreenTest method testSelectYear.
@Test
public void testSelectYear() throws Exception {
AbstractDisplayer displayer = (AbstractDisplayer) presenter.getCommitsByYearDisplayer();
displayer.filterUpdate(COLUMN_DATE, // "2019" selected
0);
DataSet dataSet = presenter.getAllCommitsDisplayer().getDataSetHandler().getLastDataSet();
assertEquals(dataSet.getRowCount(), 4);
}
use of org.dashbuilder.dataset.DataSet in project kie-wb-common by kiegroup.
the class ProjectMetricsScreenTest method testSelectWeekOfDay.
@Test
public void testSelectWeekOfDay() throws Exception {
AbstractDisplayer displayer = (AbstractDisplayer) presenter.getCommitsByDayOfWeekDisplayer();
displayer.filterUpdate(COLUMN_DATE, // "Tuesday" selected
2);
DataSet dataSet = presenter.getAllCommitsDisplayer().getDataSetHandler().getLastDataSet();
assertEquals(dataSet.getRowCount(), 2);
}
Aggregations