@Test public void testIsOnShouldReturnTrueIfLocalhostRequestProcessorIsEnabled() { given(localhostRequestProcessor.isEnabled()).willReturn(true); boolean result = underTest.isOn(); assertTrue(result); }
public boolean isOn() { return localhostRequestProcessor.isEnabled(); }
LocalhostRequestProcessorToggle implements ApplicationListener<ContextRefreshedEvent> { public boolean isOn() { return localhostRequestProcessor.isEnabled(); } }
LocalhostRequestProcessorToggle implements ApplicationListener<ContextRefreshedEvent> { public boolean isOn() { return localhostRequestProcessor.isEnabled(); }  }
LocalhostRequestProcessorToggle implements ApplicationListener<ContextRefreshedEvent> { public boolean isOn() { return localhostRequestProcessor.isEnabled(); }  void switchOff(); void switchOn(); boolean isOn(); @Override void onApplicationEvent(final ContextRefreshedEvent event); }
LocalhostRequestProcessorToggle implements ApplicationListener<ContextRefreshedEvent> { public boolean isOn() { return localhostRequestProcessor.isEnabled(); }  void switchOff(); void switchOn(); boolean isOn(); @Override void onApplicationEvent(final ContextRefreshedEvent event);  }