Search in sources :

Example 6 with Displayer

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);
}
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 7 with Displayer

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

Example 8 with Displayer

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

Example 9 with Displayer

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

Example 10 with Displayer

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

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