@Test public void testSwitchProxyModeOffWhenRouterProcessorIsNotInListShouldEnableProcessor() { given(requestProcessor.containsProcessor(routerProcessor)).willReturn(true); given(requestProcessor.isProcessorEnabled(routerProcessor)).willReturn(false); underTest.switchProxyModeOff(); verify(requestProcessor).enableProcessor(routerProcessor); }
public void switchProxyModeOff() { if (requestProcessor.containsProcessor(routerProcessor)) { requestProcessor.enableProcessor(routerProcessor); } }
ProxyModeToggle implements ApplicationListener<ContextRefreshedEvent> { public void switchProxyModeOff() { if (requestProcessor.containsProcessor(routerProcessor)) { requestProcessor.enableProcessor(routerProcessor); } } }
ProxyModeToggle implements ApplicationListener<ContextRefreshedEvent> { public void switchProxyModeOff() { if (requestProcessor.containsProcessor(routerProcessor)) { requestProcessor.enableProcessor(routerProcessor); } }  }
ProxyModeToggle implements ApplicationListener<ContextRefreshedEvent> { public void switchProxyModeOff() { if (requestProcessor.containsProcessor(routerProcessor)) { requestProcessor.enableProcessor(routerProcessor); } }  @Override void onApplicationEvent(final ContextRefreshedEvent event); void switchProxyModeOn(); void switchProxyModeOff(); boolean isProxyModeOn(); }
ProxyModeToggle implements ApplicationListener<ContextRefreshedEvent> { public void switchProxyModeOff() { if (requestProcessor.containsProcessor(routerProcessor)) { requestProcessor.enableProcessor(routerProcessor); } }  @Override void onApplicationEvent(final ContextRefreshedEvent event); void switchProxyModeOn(); void switchProxyModeOff(); boolean isProxyModeOn();  }