@Test public void initCheatSheetDMN() { cheatSheetPresenter.initCheatSheet(ScenarioSimulationModel.Type.DMN); verify(cheatSheetViewMock, times(1)).setDMNCheatSheetContent(); }
public void initCheatSheet(ScenarioSimulationModel.Type type) { if (type.equals(ScenarioSimulationModel.Type.RULE)) { view.setRuleCheatSheetContent(); } if (type.equals(ScenarioSimulationModel.Type.DMN)) { view.setDMNCheatSheetContent(); } }
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 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); }
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); }
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; }