@Test public void updateRequestedUpdatesProcessesInViewWithEmptyList() { given(model.getProcesses()).willReturn(new ArrayList<>()); presenter.updateRequested(); verify(view).setProcessList(model.getProcesses()); }
@Override public void updateRequested() { view.setProcessList(model.getProcesses()); }
ProcessListPresenter implements Presenter, ProcessListCallbacks { @Override public void updateRequested() { view.setProcessList(model.getProcesses()); } }
ProcessListPresenter implements Presenter, ProcessListCallbacks { @Override public void updateRequested() { view.setProcessList(model.getProcesses()); } ProcessListPresenter(ProcessListView view, ProcessListModel model); }
ProcessListPresenter implements Presenter, ProcessListCallbacks { @Override public void updateRequested() { view.setProcessList(model.getProcesses()); } ProcessListPresenter(ProcessListView view, ProcessListModel model); @Override void processChosen(); @Override void updateRequested(); @Override void initialize(); void addProcessChosenListener(ProcessChosenEventListener callback); }
ProcessListPresenter implements Presenter, ProcessListCallbacks { @Override public void updateRequested() { view.setProcessList(model.getProcesses()); } ProcessListPresenter(ProcessListView view, ProcessListModel model); @Override void processChosen(); @Override void updateRequested(); @Override void initialize(); void addProcessChosenListener(ProcessChosenEventListener callback);  }