use of org.dashbuilder.displayer.client.Displayer in project kie-wb-common by kiegroup.
the class ProjectMetricsScreenTest method testQuarterSelector.
@Test
public void testQuarterSelector() {
Displayer displayer = presenter.getCommitsByQuarterDisplayer();
DataSet dataSet = displayer.getDataSetHandler().getLastDataSet();
assertDataSetValues(dataSet, new String[][] { { "1", "2.00" }, { "2", "2.00" } }, 0);
}
use of org.dashbuilder.displayer.client.Displayer in project kie-wb-common by kiegroup.
the class ProjectMetricsScreenTest method testAllCommits.
@Test
public void testAllCommits() {
Displayer displayer = presenter.getAllCommitsDisplayer();
DataSet dataSet = displayer.getDataSetHandler().getLastDataSet();
assertDataSetValues(dataSet, new String[][] { { "user2", "06/04/19 12:00", "Commit 4" }, { "user2", "04/03/19 12:00", "Commit 3" }, { "user1", "03/02/19 12:00", "Commit 2" }, { "user1", "01/01/19 12:00", "Commit 1" } }, 0);
}
use of org.dashbuilder.displayer.client.Displayer in project kie-wb-common by kiegroup.
the class ProjectMetricsScreenTest method testCommitsPerAuthor.
@Test
public void testCommitsPerAuthor() {
Displayer displayer = presenter.getCommitsPerAuthorDisplayer();
DataSet dataSet = displayer.getDataSetHandler().getLastDataSet();
assertDataSetValues(dataSet, new String[][] { { "user1", "2.00", "2.00", "user1", "1.00" }, { "user2", "2.00", "2.00", "user2", "1.00" } }, 0);
}
use of org.dashbuilder.displayer.client.Displayer in project kie-wb-common by kiegroup.
the class ProjectMetricsScreenTest method testYearsSelector.
@Test
public void testYearsSelector() {
Displayer displayer = presenter.getCommitsByYearDisplayer();
DataSet dataSet = displayer.getDataSetHandler().getLastDataSet();
assertDataSetValues(dataSet, new String[][] { { "2019", "4.00" } }, 0);
}
use of org.dashbuilder.displayer.client.Displayer in project kie-wb-common by kiegroup.
the class ProjectMetricsScreenTest method testDayOfWeekSelector.
@Test
public void testDayOfWeekSelector() {
Displayer displayer = presenter.getCommitsByDayOfWeekDisplayer();
DataSet dataSet = displayer.getDataSetHandler().getLastDataSet();
assertDataSetValues(dataSet, new String[][] { { "1", "0.00" }, { "2", "0.00" }, { "3", "2.00" }, { "4", "1.00" }, { "5", "0.00" }, { "6", "0.00" }, { "7", "1.00" } }, 0);
}
Aggregations