@Test public void testFindConfiguration() throws Exception { RequestConfig configuration = requestConfigService.findConfiguration("/rest/api/todo"); assertNotNull("Configuration for todo REST must not be null.", configuration); }
public RequestConfig findConfiguration(String path) { for(RequestConfig config : configSet) { if(config.matches(path)) { return config; } } throw new RuntimeException("No mapping found for path: " + path); }
RequestConfigServiceImpl implements InitializingBean { public RequestConfig findConfiguration(String path) { for(RequestConfig config : configSet) { if(config.matches(path)) { return config; } } throw new RuntimeException("No mapping found for path: " + path); } }
RequestConfigServiceImpl implements InitializingBean { public RequestConfig findConfiguration(String path) { for(RequestConfig config : configSet) { if(config.matches(path)) { return config; } } throw new RuntimeException("No mapping found for path: " + path); }  }
RequestConfigServiceImpl implements InitializingBean { public RequestConfig findConfiguration(String path) { for(RequestConfig config : configSet) { if(config.matches(path)) { return config; } } throw new RuntimeException("No mapping found for path: " + path); }  RequestConfig findConfiguration(String path); @Override void afterPropertiesSet(); }
RequestConfigServiceImpl implements InitializingBean { public RequestConfig findConfiguration(String path) { for(RequestConfig config : configSet) { if(config.matches(path)) { return config; } } throw new RuntimeException("No mapping found for path: " + path); }  RequestConfig findConfiguration(String path); @Override void afterPropertiesSet();  }