DisplayerHtmlEditor implements IsWidget { public boolean showDisplayer() { if (sourceCodeEditor.hasErrors()) { sourceCodeEditor.focus(); return false; } view.showDisplayer(displayer); showingDisplayer = true; displayer.redraw(); return true; } @Inject  DisplayerHtmlEditor(View view, SourceCodeEditor sourceCodeEditor); @Override Widget asWidget(); Displayer getDisplayer(); void setDisplayer(Displayer displayer); boolean showDisplayer(); void initSourceCodeItems(); SourceCodeItem getSourceCodeItem(String name); boolean onSourceCodeItemSelected(String name); void onSourceCodeChanged();  }
@Test public void testInit() { verify(view).showDisplayer(displayer); verify(codeEditor, never()).init(any(), any(), any(), any()); }