@Test public void updateRequestedUpdatesProcessesInViewWithNonEmptyList() { List<NativeProcess> procs = new ArrayList<>(); procs.add(new NativeProcessImpl(123, "123", "123")); procs.add(new NativeProcessImpl(555, "5555", "555")); procs.add(new NativeProcessImpl(521, "1235", "999")); given(model.getProcesses()).willReturn(procs); 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);  }