Search in sources :

Example 1 with Displayer

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);
}
Also used : DataSet(org.dashbuilder.dataset.DataSet) RawDataSet(org.dashbuilder.dataset.RawDataSet) Displayer(org.dashbuilder.displayer.client.Displayer) AbstractDisplayer(org.dashbuilder.displayer.client.AbstractDisplayer) AbstractDisplayerTest(org.dashbuilder.displayer.client.AbstractDisplayerTest) Test(org.junit.Test)

Example 2 with Displayer

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);
}
Also used : DataSet(org.dashbuilder.dataset.DataSet) RawDataSet(org.dashbuilder.dataset.RawDataSet) Displayer(org.dashbuilder.displayer.client.Displayer) AbstractDisplayer(org.dashbuilder.displayer.client.AbstractDisplayer) AbstractDisplayerTest(org.dashbuilder.displayer.client.AbstractDisplayerTest) Test(org.junit.Test)

Example 3 with Displayer

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);
}
Also used : DataSet(org.dashbuilder.dataset.DataSet) RawDataSet(org.dashbuilder.dataset.RawDataSet) Displayer(org.dashbuilder.displayer.client.Displayer) AbstractDisplayer(org.dashbuilder.displayer.client.AbstractDisplayer) AbstractDisplayerTest(org.dashbuilder.displayer.client.AbstractDisplayerTest) Test(org.junit.Test)

Example 4 with Displayer

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);
}
Also used : DataSet(org.dashbuilder.dataset.DataSet) RawDataSet(org.dashbuilder.dataset.RawDataSet) Displayer(org.dashbuilder.displayer.client.Displayer) AbstractDisplayer(org.dashbuilder.displayer.client.AbstractDisplayer) AbstractDisplayerTest(org.dashbuilder.displayer.client.AbstractDisplayerTest) Test(org.junit.Test)

Example 5 with Displayer

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);
}
Also used : DataSet(org.dashbuilder.dataset.DataSet) RawDataSet(org.dashbuilder.dataset.RawDataSet) Displayer(org.dashbuilder.displayer.client.Displayer) AbstractDisplayer(org.dashbuilder.displayer.client.AbstractDisplayer) AbstractDisplayerTest(org.dashbuilder.displayer.client.AbstractDisplayerTest) Test(org.junit.Test)

Aggregations

DataSet (org.dashbuilder.dataset.DataSet)13 AbstractDisplayer (org.dashbuilder.displayer.client.AbstractDisplayer)13 AbstractDisplayerTest (org.dashbuilder.displayer.client.AbstractDisplayerTest)13 Displayer (org.dashbuilder.displayer.client.Displayer)13 Test (org.junit.Test)13 RawDataSet (org.dashbuilder.dataset.RawDataSet)7 SelectorDisplayer (org.dashbuilder.renderer.client.selector.SelectorDisplayer)6