CheatSheetPresenter extends AbstractSubDockPresenter<CheatSheetView> implements CheatSheetView.Presenter { public void initCheatSheet(ScenarioSimulationModel.Type type) { if (type.equals(ScenarioSimulationModel.Type.RULE)) { view.setRuleCheatSheetContent(); } if (type.equals(ScenarioSimulationModel.Type.DMN)) { view.setDMNCheatSheetContent(); } } CheatSheetPresenter(); @Inject  CheatSheetPresenter(CheatSheetView view); @Override void reset(); void initCheatSheet(ScenarioSimulationModel.Type type); static final String IDENTIFIER; }
@Test public void initCheatSheetRule() { cheatSheetPresenter.initCheatSheet(ScenarioSimulationModel.Type.RULE); verify(cheatSheetViewMock, times(1)).setRuleCheatSheetContent(); }
@Test public void initCheatSheetDMN() { cheatSheetPresenter.initCheatSheet(ScenarioSimulationModel.Type.DMN); verify(cheatSheetViewMock, times(1)).setDMNCheatSheetContent(); }