use of org.dashbuilder.displayer.client.Displayer in project kie-wb-common by kiegroup.
the class ProjectMetricsScreenTest method testCommitsOverTime.
@Test
public void testCommitsOverTime() {
Displayer displayer = presenter.getCommitsOverTimeDisplayer();
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" } }, 0);
}
use of org.dashbuilder.displayer.client.Displayer 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.displayer.client.Displayer in project kie-wb-common by kiegroup.
the class ContributorsDashboardTest method testCommitsPerOrganization.
@Test
public void testCommitsPerOrganization() {
Displayer displayer = presenter.getCommitsPerOrganization();
DataSet dataSet = displayer.getDataSetHandler().getLastDataSet();
assertDataSetValues(dataSet, new String[][] { { "org1", "2.00", "4.00", "org1", "4.00" }, { "org2", "2.00", "4.00", "org2", "4.00" }, { "emptyOrg", "1.00", "1.00", "emptyOrg", "1.00" } }, 0);
}
use of org.dashbuilder.displayer.client.Displayer in project kie-wb-common by kiegroup.
the class ContributorsDashboardTest method testAllCommits.
@Test
public void testAllCommits() {
Displayer displayer = presenter.getAllCommitsDisplayer();
DataSet dataSet = displayer.getDataSetHandler().getLastDataSet();
assertDataSetValues(dataSet, new String[][] { { "user1", "repo1", "01/01/19 12:00", "Commit 1" }, { "user2", "repo1", "03/02/19 12:00", "Commit 2" }, { "user3", "repo2", "04/03/19 12:00", "Commit 3" }, { "user4", "repo2", "06/04/19 12:00", "Commit 4" }, { "user5", "repo3", "07/05/19 12:00", "Commit 5" }, { "user6", "repo3", "09/06/19 12:00", "Commit 6" }, { "user7", "repo4", "11/07/19 12:00", "Commit 7" }, { "user8", "repo4", "02/08/20 12:00", "Commit 8" }, { "", "", "", "" } }, 0);
}
use of org.dashbuilder.displayer.client.Displayer in project kie-wb-common by kiegroup.
the class ContributorsDashboardTest method testQuarterSelector.
@Test
public void testQuarterSelector() {
Displayer displayer = presenter.getQuarterSelectorDisplayer();
DataSet dataSet = displayer.getDataSetHandler().getLastDataSet();
assertDataSetValues(dataSet, new String[][] { { "1", "3.00" }, { "2", "2.00" }, { "3", "2.00" }, { "4", "1.00" } }, 0);
}
Aggregations