@Test public void addTpicHeaderToJobDataMapOfJobDetailsIfBackendContainsValues() { backend.put("testKey", "testValue"); final JobDetail jobDetail = JobBuilder.newJob(NoopJob.class).build(); unit.injectContext(jobDetail); assertThat(jobDetail.getJobDataMap(), hasKey(TPIC_HEADER)); assertThat((Map<String, String>) jobDetail.getJobDataMap().get(TPIC_HEADER), hasEntry("testKey", "testValue")); }
public void injectContext(Trigger trigger) { injectContext(trigger.getJobDataMap()); }
TraceeContextInjector { public void injectContext(Trigger trigger) { injectContext(trigger.getJobDataMap()); } }
TraceeContextInjector { public void injectContext(Trigger trigger) { injectContext(trigger.getJobDataMap()); } TraceeContextInjector();  TraceeContextInjector(final String profile);   TraceeContextInjector(final TraceeBackend backend, final String profile); }
TraceeContextInjector { public void injectContext(Trigger trigger) { injectContext(trigger.getJobDataMap()); } TraceeContextInjector();  TraceeContextInjector(final String profile);   TraceeContextInjector(final TraceeBackend backend, final String profile); void injectContext(Trigger trigger); void injectContext(JobDetail jobDetail); void injectContext(JobDataMap jobDataMap); }
TraceeContextInjector { public void injectContext(Trigger trigger) { injectContext(trigger.getJobDataMap()); } TraceeContextInjector();  TraceeContextInjector(final String profile);   TraceeContextInjector(final TraceeBackend backend, final String profile); void injectContext(Trigger trigger); void injectContext(JobDetail jobDetail); void injectContext(JobDataMap jobDataMap);  }