@Test public void shouldGetInitParameterNames() { given(wrappedFilterConfig.getInitParameterNames()).willReturn(Collections.enumeration(Collections.emptyList())); Enumeration<String> initParameterNames = filterConfig.getInitParameterNames(); verify(wrappedFilterConfig).getInitParameterNames(); assertEquals(initParameterNames.nextElement(), "configurator"); }
@SuppressWarnings("unchecked") public Enumeration<String> getInitParameterNames() { List<String> names = Collections.list(filterConfig.getInitParameterNames()); names.add(INIT_PARAM_AUTHZ_CONFIGURATOR); return Collections.enumeration(names); }
RestAuthorizationDispatcherFilterConfig implements FilterConfig { @SuppressWarnings("unchecked") public Enumeration<String> getInitParameterNames() { List<String> names = Collections.list(filterConfig.getInitParameterNames()); names.add(INIT_PARAM_AUTHZ_CONFIGURATOR); return Collections.enumeration(names); } }
RestAuthorizationDispatcherFilterConfig implements FilterConfig { @SuppressWarnings("unchecked") public Enumeration<String> getInitParameterNames() { List<String> names = Collections.list(filterConfig.getInitParameterNames()); names.add(INIT_PARAM_AUTHZ_CONFIGURATOR); return Collections.enumeration(names); } RestAuthorizationDispatcherFilterConfig(final FilterConfig filterConfig,
            final String authzConfiguratorClassName); }
RestAuthorizationDispatcherFilterConfig implements FilterConfig { @SuppressWarnings("unchecked") public Enumeration<String> getInitParameterNames() { List<String> names = Collections.list(filterConfig.getInitParameterNames()); names.add(INIT_PARAM_AUTHZ_CONFIGURATOR); return Collections.enumeration(names); } RestAuthorizationDispatcherFilterConfig(final FilterConfig filterConfig,
            final String authzConfiguratorClassName); String getFilterName(); ServletContext getServletContext(); String getInitParameter(String name); @SuppressWarnings("unchecked") Enumeration<String> getInitParameterNames(); }
RestAuthorizationDispatcherFilterConfig implements FilterConfig { @SuppressWarnings("unchecked") public Enumeration<String> getInitParameterNames() { List<String> names = Collections.list(filterConfig.getInitParameterNames()); names.add(INIT_PARAM_AUTHZ_CONFIGURATOR); return Collections.enumeration(names); } RestAuthorizationDispatcherFilterConfig(final FilterConfig filterConfig,
            final String authzConfiguratorClassName); String getFilterName(); ServletContext getServletContext(); String getInitParameter(String name); @SuppressWarnings("unchecked") Enumeration<String> getInitParameterNames();  }