@Test(expectedExceptions = NullPointerException.class) public void testRegisterTaskTaskNullValue() { PieExecutorTaskFactory instance = new PieExecutorTaskFactory(); instance.registerTask(IPieEvent.class, null); }
@Override public <X extends P, P extends IPieEvent, T extends IPieEventTask<P>> void registerTask(Class<X> event, Class<T> task) { Validate.notNull(event); Validate.notNull(task); this.tasks.put(event, task); }
PieExecutorTaskFactory implements IPieExecutorTaskFactory { @Override public <X extends P, P extends IPieEvent, T extends IPieEventTask<P>> void registerTask(Class<X> event, Class<T> task) { Validate.notNull(event); Validate.notNull(task); this.tasks.put(event, task); } }
PieExecutorTaskFactory implements IPieExecutorTaskFactory { @Override public <X extends P, P extends IPieEvent, T extends IPieEventTask<P>> void registerTask(Class<X> event, Class<T> task) { Validate.notNull(event); Validate.notNull(task); this.tasks.put(event, task); }  }
PieExecutorTaskFactory implements IPieExecutorTaskFactory { @Override public <X extends P, P extends IPieEvent, T extends IPieEventTask<P>> void registerTask(Class<X> event, Class<T> task) { Validate.notNull(event); Validate.notNull(task); this.tasks.put(event, task); }  void setBeanService(IBeanService beanService); void setTasks(Map<Class, Class> tasks); @Override IPieEventTask getTask(IPieEvent event); @Override void registerTask(Class<X> event, Class<T> task); @Override void removeTaskRegistration(Class<P> event); }
PieExecutorTaskFactory implements IPieExecutorTaskFactory { @Override public <X extends P, P extends IPieEvent, T extends IPieEventTask<P>> void registerTask(Class<X> event, Class<T> task) { Validate.notNull(event); Validate.notNull(task); this.tasks.put(event, task); }  void setBeanService(IBeanService beanService); void setTasks(Map<Class, Class> tasks); @Override IPieEventTask getTask(IPieEvent event); @Override void registerTask(Class<X> event, Class<T> task); @Override void removeTaskRegistration(Class<P> event);  }