@Override @SuppressWarnings("rawtypes") public Enumeration getParameterNames() { List<String> names = new ArrayList<String>(); Enumeration enumeration = super.getParameterNames(); while (enumeration.hasMoreElements()) { names.add(JSCompatibilityHelper.unencode((String) enumeration.nextElement())); } return new Enumerator<String>(names); }
private void initBundle() throws Exception { when(bundleContext.getBundle(BUNDLE_ID)).thenReturn(bundle); when(bundle.getSymbolicName()).thenReturn(BUNDLE_SYMBOLIC_NAME); when(bundle.findEntries("", "*.properties", false)).thenReturn(new Enumerator(new ArrayList<>(asList(new URL("http://mock.com"))))); }