protected void _testEnclosures(List encs, String prefix) throws Exception { Set s1 = new HashSet(); Set s2 = new HashSet(); for (int i = 0; i < encs.size(); i++) { SyndEnclosure enc = (SyndEnclosure) encs.get(i); s1.add(enc.getUrl() + " " + enc.getType() + " " + enc.getLength()); s2.add( getPrefix() + "." + prefix + ".enclousure[" + i + "]^url" + " " + getPrefix() + "." + prefix + ".enclousure[" + i + "]^type" + " " + "100"); } assertTrue(s1.equals(s2)); }
protected void testEnclosures(final List<SyndEnclosure> encs, final String prefix) throws Exception { final Set<String> s1 = new HashSet<String>(); final Set<String> s2 = new HashSet<String>(); for (int i = 0; i < encs.size(); i++) { final SyndEnclosure enc = encs.get(i); s1.add(enc.getUrl() + " " + enc.getType() + " " + enc.getLength()); s2.add( getPrefix() + "." + prefix + ".enclousure[" + i + "]^url" + " " + getPrefix() + "." + prefix + ".enclousure[" + i + "]^type" + " " + "100"); } assertTrue(s1.equals(s2)); }