@Test public final void testIsRequestLoggingOnReturnsFalseIfHandlerDoesntContainProcessor() { given(requestHandler.isProcessorEnabled(jmsRequestLogger)).willReturn(false); boolean actual = underTest.isRequestLoggingOn(); verify(requestHandler).isProcessorEnabled(jmsRequestLogger); assertFalse(actual); }
public boolean isRequestLoggingOn() { return requestProcessor.isProcessorEnabled(jmsRequestLoggerProcessor); }
MessageLoggingToggle implements ApplicationListener<ContextRefreshedEvent> { public boolean isRequestLoggingOn() { return requestProcessor.isProcessorEnabled(jmsRequestLoggerProcessor); } }
MessageLoggingToggle implements ApplicationListener<ContextRefreshedEvent> { public boolean isRequestLoggingOn() { return requestProcessor.isProcessorEnabled(jmsRequestLoggerProcessor); }  }
MessageLoggingToggle implements ApplicationListener<ContextRefreshedEvent> { public boolean isRequestLoggingOn() { return requestProcessor.isProcessorEnabled(jmsRequestLoggerProcessor); }  @Override void onApplicationEvent(final ContextRefreshedEvent event); void switchOffMessageLogging(); void switchOnMessageLogging(); boolean isRequestLoggingOn(); boolean isResponseLoggingOn(); }
MessageLoggingToggle implements ApplicationListener<ContextRefreshedEvent> { public boolean isRequestLoggingOn() { return requestProcessor.isProcessorEnabled(jmsRequestLoggerProcessor); }  @Override void onApplicationEvent(final ContextRefreshedEvent event); void switchOffMessageLogging(); void switchOnMessageLogging(); boolean isRequestLoggingOn(); boolean isResponseLoggingOn();  }