@Test public void testForwardWithoutListener() throws Exception { ContextLogDispatcher.forward("simpleMessage"); assertTrue(MessageEntry.class.isInstance(caughtEntry)); verify(context, times(1)).log(Matchers.<Level>any(), any(GroupChainId.class), any(MessageEntry.class)); }
public static void forward(String message) { forward(new GroupChainId(), new MessageEntry(message)); }
ContextLogDispatcher { public static void forward(String message) { forward(new GroupChainId(), new MessageEntry(message)); } }
ContextLogDispatcher { public static void forward(String message) { forward(new GroupChainId(), new MessageEntry(message)); } private  ContextLogDispatcher(); }
ContextLogDispatcher { public static void forward(String message) { forward(new GroupChainId(), new MessageEntry(message)); } private  ContextLogDispatcher(); static void forward(String message); static void forward(GroupChainId id, Entry entry); static void forward(Level level, GroupChainId id, Entry entry); static void addListener(DispatcherForwardListener listener); static void removeListener(DispatcherForwardListener listener); static void clearListeners(); static List<DispatcherForwardListener> getListeners(); void forwardEntry(Level level, GroupChainId id, Entry entry); void fireForwardedEvent(GroupChainId id, Entry entry); List<DispatcherForwardListener> getDispatcherListeners(); void addDispatcherListener(DispatcherForwardListener listener); void removeDispatcherListener(DispatcherForwardListener listener); void clearDispatcherListeners(); }
ContextLogDispatcher { public static void forward(String message) { forward(new GroupChainId(), new MessageEntry(message)); } private  ContextLogDispatcher(); static void forward(String message); static void forward(GroupChainId id, Entry entry); static void forward(Level level, GroupChainId id, Entry entry); static void addListener(DispatcherForwardListener listener); static void removeListener(DispatcherForwardListener listener); static void clearListeners(); static List<DispatcherForwardListener> getListeners(); void forwardEntry(Level level, GroupChainId id, Entry entry); void fireForwardedEvent(GroupChainId id, Entry entry); List<DispatcherForwardListener> getDispatcherListeners(); void addDispatcherListener(DispatcherForwardListener listener); void removeDispatcherListener(DispatcherForwardListener listener); void clearDispatcherListeners();  }