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