RemoteDebugPresenter implements RemoteDebugView.ActionDelegate { @Override public void onConfirmClicked(@NotNull String host, @Min(value=0) int port) { debuggerPresenter.attachDebugger(host, port); } @Inject  RemoteDebugPresenter(RemoteDebugView view, DebuggerPresenter debuggerPresenter); void showDialog(); @Override void onConfirmClicked(@NotNull String host, @Min(value=0) int port);  }
@Test public void connectToRemoteDebuggerShouldBeDone() throws Exception { presenter.onConfirmClicked("host", 8000); verify(debuggerPresenter).attachDebugger("host", 8000); }