public void testListEachEntry() throws IOException { URI dir = store.createList("dir", tmp); final File text = File.createTempFile("test", ".txt", new File(dir)); final File xml = File.createTempFile("test", ".xml", new File(dir)); store.listEachEntry("dir", tmp, "text/plain", new DataInfo() { public void list(URI id, String media, long lastModified) throws IOException { assertEquals("text/plain", media); assertEquals(text.getAbsolutePath(), new File(id).getAbsolutePath()); } }); store.listEachEntry("dir", tmp, "application/xml", new DataInfo() { public void list(URI id, String media, long lastModified) throws IOException { assertEquals("application/xml", media); assertEquals(xml.getAbsolutePath(), new File(id).getAbsolutePath()); } }); store.deleteEntry(text.getPath(), tmp); store.deleteEntry(xml.getPath(), tmp); store.deleteEntry(dir.getPath(), tmp); }