use of org.dashbuilder.dataset.DataSet in project kie-wb-common by kiegroup.
the class ContributorsDashboardTest method testSelectRepo.
@Test
public void testSelectRepo() throws Exception {
// "repo1" selected
repositorySelectorDisplayer.filterUpdate(COLUMN_REPO, 1);
DataSet dataSet = allCommitsDisplayer.getDataSetHandler().getLastDataSet();
assertEquals(dataSet.getRowCount(), 2);
}
use of org.dashbuilder.dataset.DataSet in project kie-wb-common by kiegroup.
the class ContributorsDashboardTest method testSelectOrgUnit.
@Test
public void testSelectOrgUnit() throws Exception {
// "emptyOrg" selected
organizationSelectorDisplayer.filterUpdate(COLUMN_ORG, 0);
DataSet dataSet = allCommitsDisplayer.getDataSetHandler().getLastDataSet();
assertEquals(dataSet.getRowCount(), 1);
}
use of org.dashbuilder.dataset.DataSet in project kie-wb-common by kiegroup.
the class ContributorsDashboardTest method testCommitsEvolution.
@Test
public void testCommitsEvolution() {
Displayer displayer = presenter.getCommitsEvolutionDisplayer();
DataSet dataSet = displayer.getDataSetHandler().getLastDataSet();
assertDataSetValues(dataSet, new String[][] { { "2019-01", "1.00" }, { "2019-02", "0.00" }, { "2019-03", "1.00" }, { "2019-04", "1.00" }, { "2019-05", "0.00" }, { "2019-06", "1.00" }, { "2019-07", "1.00" }, { "2019-08", "0.00" }, { "2019-09", "1.00" }, { "2019-10", "0.00" }, { "2019-11", "1.00" }, { "2019-12", "0.00" }, { "2020-01", "0.00" }, { "2020-02", "1.00" } }, 0);
}
use of org.dashbuilder.dataset.DataSet in project kie-wb-common by kiegroup.
the class ContributorsDashboardTest method testSelectWeekOfDay.
@Test
public void testSelectWeekOfDay() throws Exception {
// "Tuesday" selected
dayOfWeekSelectorDisplayer.filterUpdate(COLUMN_DATE, 2);
DataSet dataSet = allCommitsDisplayer.getDataSetHandler().getLastDataSet();
assertEquals(dataSet.getRowCount(), 2);
}
use of org.dashbuilder.dataset.DataSet in project kie-wb-common by kiegroup.
the class ContributorsDashboardTest method testClickOnOrgUnit.
@Test
public void testClickOnOrgUnit() throws Exception {
// "org1" selected
commitsPerOrganization.filterUpdate(COLUMN_ORG, 0);
DataSet dataSet = allCommitsDisplayer.getDataSetHandler().getLastDataSet();
assertEquals(dataSet.getRowCount(), 4);
}
Aggregations