use of org.kie.workbench.common.screens.contributors.client.screens.ContributorsScreen in project kie-wb-common by kiegroup.
the class ContributorsDashboardTest method init.
@Before
public void init() throws Exception {
super.init();
contributorsDataSet = ContributorsData.INSTANCE.toDataSet();
contributorsDataSet.setUUID(ContributorsDataSets.GIT_CONTRIB);
clientDataSetManager.registerDataSet(contributorsDataSet);
commitsPerOrganization = createNewDisplayer(ContributorsKPIs.getCommitsPerOrganization(i18n));
commitsEvolutionDisplayer = createNewDisplayer(ContributorsKPIs.getCommitsEvolution(i18n));
organizationSelectorDisplayer = createSelectorDisplayer(ContributorsKPIs.getOrgUnitSelector(i18n));
repositorySelectorDisplayer = createSelectorDisplayer(ContributorsKPIs.getRepoSelector(i18n));
authorSelectorDisplayer = createSelectorDisplayer(ContributorsKPIs.getAuthorSelector(i18n));
topAuthorSelectorDisplayer = createSelectorDisplayer(ContributorsKPIs.getTopAuthorSelector(i18n));
yearsSelectorDisplayer = createNewDisplayer(ContributorsKPIs.getYears(i18n));
quarterSelectorDisplayer = createNewDisplayer(ContributorsKPIs.getQuarters(i18n));
dayOfWeekSelectorDisplayer = createNewDisplayer(ContributorsKPIs.getDaysOfWeek(i18n));
allCommitsDisplayer = createNewDisplayer(ContributorsKPIs.getAllCommits(i18n));
displayerCoordinator = new DisplayerCoordinator(rendererManager);
displayerCoordinator.addListener(displayerListener);
when(view.getI18nService()).thenReturn(i18n);
presenter = new ContributorsScreen(view, commitsPerOrganization, commitsEvolutionDisplayer, organizationSelectorDisplayer, repositorySelectorDisplayer, authorSelectorDisplayer, topAuthorSelectorDisplayer, yearsSelectorDisplayer, quarterSelectorDisplayer, dayOfWeekSelectorDisplayer, allCommitsDisplayer, displayerCoordinator, workbenchNotification);
}
Aggregations