@Test public void runFailsWithoutView() { thrown.expect(IllegalStateException.class); new ToolkitPresenter(mock(ConfigurationModel.class), mock(SourceCodeModel.class)).run("foo"); }
public void run(String title) { checkInitialized(); initUncaughtExceptionsHandler(); view.setTitle(title); view.displayHighlightedSourceCode(""); view.displayAst(null); view.displayXml(""); view.disableXPathEvaluateButton(); initConfigurationTab(); view.run(); }
ToolkitPresenter { public void run(String title) { checkInitialized(); initUncaughtExceptionsHandler(); view.setTitle(title); view.displayHighlightedSourceCode(""); view.displayAst(null); view.displayXml(""); view.disableXPathEvaluateButton(); initConfigurationTab(); view.run(); } }
ToolkitPresenter { public void run(String title) { checkInitialized(); initUncaughtExceptionsHandler(); view.setTitle(title); view.displayHighlightedSourceCode(""); view.displayAst(null); view.displayXml(""); view.disableXPathEvaluateButton(); initConfigurationTab(); view.run(); } ToolkitPresenter(ConfigurationModel configurationModel, SourceCodeModel model); }
ToolkitPresenter { public void run(String title) { checkInitialized(); initUncaughtExceptionsHandler(); view.setTitle(title); view.displayHighlightedSourceCode(""); view.displayAst(null); view.displayXml(""); view.disableXPathEvaluateButton(); initConfigurationTab(); view.run(); } ToolkitPresenter(ConfigurationModel configurationModel, SourceCodeModel model); void setView(ToolkitView view); void run(String title); void onSourceCodeOpenButtonClick(); void onSourceCodeParseButtonClick(); void onXPathEvaluateButtonClick(); void onSourceCodeKeyTyped(); void onSourceCodeTextCursorMoved(); void onAstSelectionChanged(); void onConfigurationPropertyFocusLost(String name); }
ToolkitPresenter { public void run(String title) { checkInitialized(); initUncaughtExceptionsHandler(); view.setTitle(title); view.displayHighlightedSourceCode(""); view.displayAst(null); view.displayXml(""); view.disableXPathEvaluateButton(); initConfigurationTab(); view.run(); } ToolkitPresenter(ConfigurationModel configurationModel, SourceCodeModel model); void setView(ToolkitView view); void run(String title); void onSourceCodeOpenButtonClick(); void onSourceCodeParseButtonClick(); void onXPathEvaluateButtonClick(); void onSourceCodeKeyTyped(); void onSourceCodeTextCursorMoved(); void onAstSelectionChanged(); void onConfigurationPropertyFocusLost(String name);  }