@Test public void injectsIntoFullChildChain() throws Exception { CompositeTestConverter parent = new CompositeTestConverter(); SimpleTestConverter child1 = new SimpleTestConverter(); ContextAwareTestConverter child2 = new ContextAwareTestConverter(); parent.setChildConverter(child1); child1.setNext(child2); Context context = Mockito.mock(Context.class); processor.process(context, parent); assertThat(child2.getContext(), is(sameInstance(context))); }
@Override public void process(Context context, Converter<ILoggingEvent> head) { inject(context, head, false); }
ChildConverterContextInjector implements PostCompileProcessor<ILoggingEvent> { @Override public void process(Context context, Converter<ILoggingEvent> head) { inject(context, head, false); } }
ChildConverterContextInjector implements PostCompileProcessor<ILoggingEvent> { @Override public void process(Context context, Converter<ILoggingEvent> head) { inject(context, head, false); }  }
ChildConverterContextInjector implements PostCompileProcessor<ILoggingEvent> { @Override public void process(Context context, Converter<ILoggingEvent> head) { inject(context, head, false); }  @Override void process(Context context, Converter<ILoggingEvent> head); }
ChildConverterContextInjector implements PostCompileProcessor<ILoggingEvent> { @Override public void process(Context context, Converter<ILoggingEvent> head) { inject(context, head, false); }  @Override void process(Context context, Converter<ILoggingEvent> head);  }