@Test public void testThatRerouteShouldSetRequestUriToServletAddress() throws URISyntaxException { URI expected = new URI("http: underTest.reroute(request); verify(request).setUri(expected); }
public void reroute(final WilmaHttpRequest request) { try { URI uri; uri = createUri(); request.setUri(uri); } catch (URISyntaxException e) { logger.error(e.getMessage()); } }
LocalhostRequestRouter implements ApplicationListener<ContextRefreshedEvent> { public void reroute(final WilmaHttpRequest request) { try { URI uri; uri = createUri(); request.setUri(uri); } catch (URISyntaxException e) { logger.error(e.getMessage()); } } }
LocalhostRequestRouter implements ApplicationListener<ContextRefreshedEvent> { public void reroute(final WilmaHttpRequest request) { try { URI uri; uri = createUri(); request.setUri(uri); } catch (URISyntaxException e) { logger.error(e.getMessage()); } }  }
LocalhostRequestRouter implements ApplicationListener<ContextRefreshedEvent> { public void reroute(final WilmaHttpRequest request) { try { URI uri; uri = createUri(); request.setUri(uri); } catch (URISyntaxException e) { logger.error(e.getMessage()); } }  void reroute(final WilmaHttpRequest request); @Override void onApplicationEvent(final ContextRefreshedEvent event); }
LocalhostRequestRouter implements ApplicationListener<ContextRefreshedEvent> { public void reroute(final WilmaHttpRequest request) { try { URI uri; uri = createUri(); request.setUri(uri); } catch (URISyntaxException e) { logger.error(e.getMessage()); } }  void reroute(final WilmaHttpRequest request); @Override void onApplicationEvent(final ContextRefreshedEvent event);  }