@Test public void shouldParseEventParameters() throws Exception { Map<String, Object> parameters = prepareParameter(SUBJECT); String subject = eventParser.parseEventSubject(TRIGGER_LISTENER_SUBJECT, parameters); assertEquals(SUBJECT, subject); }
@Override public String parseEventSubject(String eventSubject, Map<String, Object> eventParameters) { return (String) eventParameters.get(MotechSchedulerService.JOB_ID_KEY); }
SchedulerEventParser implements TasksEventParser { @Override public String parseEventSubject(String eventSubject, Map<String, Object> eventParameters) { return (String) eventParameters.get(MotechSchedulerService.JOB_ID_KEY); } }
SchedulerEventParser implements TasksEventParser { @Override public String parseEventSubject(String eventSubject, Map<String, Object> eventParameters) { return (String) eventParameters.get(MotechSchedulerService.JOB_ID_KEY); }  }
SchedulerEventParser implements TasksEventParser { @Override public String parseEventSubject(String eventSubject, Map<String, Object> eventParameters) { return (String) eventParameters.get(MotechSchedulerService.JOB_ID_KEY); }  @Override Map<String, Object> parseEventParameters(String eventSubject, Map<String, Object> eventParameters); @Override String parseEventSubject(String eventSubject, Map<String, Object> eventParameters); @Override String getName(); }
SchedulerEventParser implements TasksEventParser { @Override public String parseEventSubject(String eventSubject, Map<String, Object> eventParameters) { return (String) eventParameters.get(MotechSchedulerService.JOB_ID_KEY); }  @Override Map<String, Object> parseEventParameters(String eventSubject, Map<String, Object> eventParameters); @Override String parseEventSubject(String eventSubject, Map<String, Object> eventParameters); @Override String getName();  }