@Test public void testAddLanguage() { tested.addLanguage(MonacoEditorLanguage.JAVA); verify(view, times(1)).addLanguage(eq(MonacoEditorLanguage.TITLE_JAVA), eq(MonacoEditorLanguage.LANG_JAVA)); }
public MonacoEditorPresenter addLanguage(MonacoEditorLanguage module) { languages.add(module); view.addLanguage(module.getTitle(), module.getId()); return this; }
MonacoEditorPresenter { public MonacoEditorPresenter addLanguage(MonacoEditorLanguage module) { languages.add(module); view.addLanguage(module.getTitle(), module.getId()); return this; } }
MonacoEditorPresenter { public MonacoEditorPresenter addLanguage(MonacoEditorLanguage module) { languages.add(module); view.addLanguage(module.getTitle(), module.getId()); return this; } @Inject  MonacoEditorPresenter(MonacoEditorView view); }
MonacoEditorPresenter { public MonacoEditorPresenter addLanguage(MonacoEditorLanguage module) { languages.add(module); view.addLanguage(module.getTitle(), module.getId()); return this; } @Inject  MonacoEditorPresenter(MonacoEditorView view); @PostConstruct void init(); MonacoEditorPresenter setOnChangeCallback(OnChangeCallback onChangeCallback); MonacoEditorPresenter setWidthPx(int widthPx); MonacoEditorPresenter setHeightPx(int heightPx); MonacoEditorPresenter setReadOnly(boolean readOnly); MonacoEditorPresenter addLanguage(MonacoEditorLanguage module); void setValue(String languageId, String value); String getValue(); String getLanguageId(); MonacoEditorView getView(); @PreDestroy void destroy(); }
MonacoEditorPresenter { public MonacoEditorPresenter addLanguage(MonacoEditorLanguage module) { languages.add(module); view.addLanguage(module.getTitle(), module.getId()); return this; } @Inject  MonacoEditorPresenter(MonacoEditorView view); @PostConstruct void init(); MonacoEditorPresenter setOnChangeCallback(OnChangeCallback onChangeCallback); MonacoEditorPresenter setWidthPx(int widthPx); MonacoEditorPresenter setHeightPx(int heightPx); MonacoEditorPresenter setReadOnly(boolean readOnly); MonacoEditorPresenter addLanguage(MonacoEditorLanguage module); void setValue(String languageId, String value); String getValue(); String getLanguageId(); MonacoEditorView getView(); @PreDestroy void destroy();  }