@Test public void followsChainToConverterWithChild() throws Exception { SimpleTestConverter start = new SimpleTestConverter(); CompositeTestConverter parent = new CompositeTestConverter(); ContextAwareTestConverter child = new ContextAwareTestConverter(); start.setNext(parent); parent.setChildConverter(child); Context context = Mockito.mock(Context.class); processor.process(context, parent); assertThat(child.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);  }