@Test public void requireThatEmptyInputGivesEmptyOutput() { final FilterChainRepository filterChainRepository = new FilterChainRepository( new ChainsConfig(new ChainsConfig.Builder()), new ComponentRegistry<>(), new ComponentRegistry<>(), new ComponentRegistry<>(), new ComponentRegistry<>()); final FilterBindingsProvider provider = new FilterBindingsProvider( new ComponentId("foo"), new ServerConfig(configBuilder), filterChainRepository, new ComponentRegistry<>()); final FilterBindings filterBindings = provider.get(); assertNotNull(filterBindings); assertFalse(filterBindings.getRequestFilters().iterator().hasNext()); assertFalse(filterBindings.getResponseFilters().iterator().hasNext()); }
@Override public FilterBindings get() { return new FilterBindings(requestFilters, responseFilters); }
FilterBindingsProvider implements Provider<FilterBindings> { @Override public FilterBindings get() { return new FilterBindings(requestFilters, responseFilters); } }
FilterBindingsProvider implements Provider<FilterBindings> { @Override public FilterBindings get() { return new FilterBindings(requestFilters, responseFilters); } FilterBindingsProvider(ComponentId componentId,
                                  ServerConfig config,
                                  FilterChainRepository filterChainRepository,
                                  ComponentRegistry<SecurityRequestFilter> legacyRequestFilters); }
FilterBindingsProvider implements Provider<FilterBindings> { @Override public FilterBindings get() { return new FilterBindings(requestFilters, responseFilters); } FilterBindingsProvider(ComponentId componentId,
                                  ServerConfig config,
                                  FilterChainRepository filterChainRepository,
                                  ComponentRegistry<SecurityRequestFilter> legacyRequestFilters); @Override FilterBindings get(); @Override void deconstruct(); }
FilterBindingsProvider implements Provider<FilterBindings> { @Override public FilterBindings get() { return new FilterBindings(requestFilters, responseFilters); } FilterBindingsProvider(ComponentId componentId,
                                  ServerConfig config,
                                  FilterChainRepository filterChainRepository,
                                  ComponentRegistry<SecurityRequestFilter> legacyRequestFilters); @Override FilterBindings get(); @Override void deconstruct();  }