@Test(expected = IllegalArgumentException.class) public void addProcessChosenListenerThrowsWhenNullArgPassed() { presenter.addProcessChosenListener(null); }
public void addProcessChosenListener(ProcessChosenEventListener callback) { if (callback == null) { throw new IllegalArgumentException("Callback cannot be null!"); } processChosenCallbacks.add(callback); }
ProcessListPresenter implements Presenter, ProcessListCallbacks { public void addProcessChosenListener(ProcessChosenEventListener callback) { if (callback == null) { throw new IllegalArgumentException("Callback cannot be null!"); } processChosenCallbacks.add(callback); } }
ProcessListPresenter implements Presenter, ProcessListCallbacks { public void addProcessChosenListener(ProcessChosenEventListener callback) { if (callback == null) { throw new IllegalArgumentException("Callback cannot be null!"); } processChosenCallbacks.add(callback); } ProcessListPresenter(ProcessListView view, ProcessListModel model); }
ProcessListPresenter implements Presenter, ProcessListCallbacks { public void addProcessChosenListener(ProcessChosenEventListener callback) { if (callback == null) { throw new IllegalArgumentException("Callback cannot be null!"); } processChosenCallbacks.add(callback); } ProcessListPresenter(ProcessListView view, ProcessListModel model); @Override void processChosen(); @Override void updateRequested(); @Override void initialize(); void addProcessChosenListener(ProcessChosenEventListener callback); }
ProcessListPresenter implements Presenter, ProcessListCallbacks { public void addProcessChosenListener(ProcessChosenEventListener callback) { if (callback == null) { throw new IllegalArgumentException("Callback cannot be null!"); } processChosenCallbacks.add(callback); } ProcessListPresenter(ProcessListView view, ProcessListModel model); @Override void processChosen(); @Override void updateRequested(); @Override void initialize(); void addProcessChosenListener(ProcessChosenEventListener callback);  }