@Test public void newActiveProcessSelectedUpdatesModel() { NativeProcess newProcess = new NativeProcessImpl(123, "ayy", "lmao"); given(view.getActiveProcess()).willReturn(newProcess); model.setActiveProcess(null); presenter.newActiveProcessSelected(); assertEquals(newProcess, model.getActiveProcess()); }
@Override public void newActiveProcessSelected() { NativeProcess newProc = view.getActiveProcess(); model.setActiveProcess(newProc); }
MainPresenter implements Presenter, MainCallbacks { @Override public void newActiveProcessSelected() { NativeProcess newProc = view.getActiveProcess(); model.setActiveProcess(newProc); } }
MainPresenter implements Presenter, MainCallbacks { @Override public void newActiveProcessSelected() { NativeProcess newProc = view.getActiveProcess(); model.setActiveProcess(newProc); } MainPresenter(MainView view, MainModel model); }
MainPresenter implements Presenter, MainCallbacks { @Override public void newActiveProcessSelected() { NativeProcess newProc = view.getActiveProcess(); model.setActiveProcess(newProc); } MainPresenter(MainView view, MainModel model); @Override void initialize(); @Override void newActiveProcessSelected(); }
MainPresenter implements Presenter, MainCallbacks { @Override public void newActiveProcessSelected() { NativeProcess newProc = view.getActiveProcess(); model.setActiveProcess(newProc); } MainPresenter(MainView view, MainModel model); @Override void initialize(); @Override void newActiveProcessSelected();  }