@Test public void testPostProcess() { PathMatchingFilter filter = createMock(PathMatchingFilter.class); expect(filter.processPathConfig("/1", "first")).andReturn(filter); expect(filter.processPathConfig("/2", "second")).andReturn(filter); replay(filter); Map<String, String> pathConfigMap = new HashMap<String, String>(); pathConfigMap.put("/1", "first"); pathConfigMap.put("/2", "second"); PathMatchingFilterProvider underTest = new PathMatchingFilterProvider(Key.get(PathMatchingFilter.class), pathConfigMap); underTest.postProcess(filter); verify(filter); }
@Override protected T postProcess(T filter) { for (Map.Entry<String, String> pathConfig : this.pathConfigs.entrySet()) { filter.processPathConfig(pathConfig.getKey(), pathConfig.getValue()); } return filter; }
PathMatchingFilterProvider extends AbstractInjectionProvider<T> { @Override protected T postProcess(T filter) { for (Map.Entry<String, String> pathConfig : this.pathConfigs.entrySet()) { filter.processPathConfig(pathConfig.getKey(), pathConfig.getValue()); } return filter; } }
PathMatchingFilterProvider extends AbstractInjectionProvider<T> { @Override protected T postProcess(T filter) { for (Map.Entry<String, String> pathConfig : this.pathConfigs.entrySet()) { filter.processPathConfig(pathConfig.getKey(), pathConfig.getValue()); } return filter; } PathMatchingFilterProvider(Key<T> key, Map<String, String> pathConfigs); }
PathMatchingFilterProvider extends AbstractInjectionProvider<T> { @Override protected T postProcess(T filter) { for (Map.Entry<String, String> pathConfig : this.pathConfigs.entrySet()) { filter.processPathConfig(pathConfig.getKey(), pathConfig.getValue()); } return filter; } PathMatchingFilterProvider(Key<T> key, Map<String, String> pathConfigs);  }
PathMatchingFilterProvider extends AbstractInjectionProvider<T> { @Override protected T postProcess(T filter) { for (Map.Entry<String, String> pathConfig : this.pathConfigs.entrySet()) { filter.processPathConfig(pathConfig.getKey(), pathConfig.getValue()); } return filter; } PathMatchingFilterProvider(Key<T> key, Map<String, String> pathConfigs);   }