Search in sources :

Example 11 with Displayer

use of org.dashbuilder.displayer.client.Displayer in project kie-wb-common by kiegroup.

the class ContributorsDashboardTest method testDayOfWeekSelector.

@Test
public void testDayOfWeekSelector() {
    Displayer displayer = presenter.getDayOfWeekSelectorDisplayer();
    DataSet dataSet = displayer.getDataSetHandler().getLastDataSet();
    assertDataSetValues(dataSet, new String[][] { { "1", "0.00" }, { "2", "0.00" }, { "3", "2.00" }, { "4", "1.00" }, { "5", "1.00" }, { "6", "2.00" }, { "7", "2.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 12 with Displayer

use of org.dashbuilder.displayer.client.Displayer in project kie-wb-common by kiegroup.

the class ContributorsDashboardTest method testYearsSelector.

@Test
public void testYearsSelector() {
    Displayer displayer = presenter.getYearsSelectorDisplayer();
    DataSet dataSet = displayer.getDataSetHandler().getLastDataSet();
    assertDataSetValues(dataSet, new String[][] { { "2019", "7.00" }, { "2020", "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 13 with Displayer

use of org.dashbuilder.displayer.client.Displayer in project kie-wb-common by kiegroup.

the class ProjectMetricsScreenTest method testTopAuthorSelector.

@Test
public void testTopAuthorSelector() {
    Displayer displayer = presenter.getTopAuthorSelectorDisplayer();
    DataSet dataSet = displayer.getDataSetHandler().getLastDataSet();
    assertDataSetValues(dataSet, new String[][] { { "user1", "2.00" }, { "user2", "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)

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