@Test
public void getAllDailyDumps() throws IOException {

	wrf.setWebResourceContentsFromResource(
			"https://dumps.wikimedia.org/other/incr/wikidatawiki/",
			"/other-incr-wikidatawiki-index.html", this.getClass());
	setLocalDump("20140220", DumpContentType.DAILY, true);
	setLocalDump("20140219", DumpContentType.CURRENT, true);
	setLocalDump("20140215", DumpContentType.DAILY, false);
	setLocalDump("20140205", DumpContentType.DAILY, true);
	setLocalDump("nodate", DumpContentType.DAILY, true);
	WmfDumpFileManager dumpFileManager = new WmfDumpFileManager(
			"wikidatawiki", dm, wrf);
	List<? extends MwDumpFile> dumpFiles = dumpFileManager
			.findAllDumps(DumpContentType.DAILY);
	String[] dumpDates = { "20140221", "20140220", "20140219", "20140218",
			"20140217", "20140216", "20140215", "20140214", "20140213",
			"20140212", "20140211", "20140210", "20140209", "20140208",
			"20140205" };
	boolean[] dumpIsLocal = { false, true, false, false, false, false,
			false, false, false, false, false, false, false, false, true };
	assertEquals(dumpFiles.size(), dumpDates.length);
	for (int i = 0; i < dumpFiles.size(); i++) {
		assertEquals(dumpFiles.get(i).getDumpContentType(),
				DumpContentType.DAILY);
		assertEquals(dumpFiles.get(i).getDateStamp(), dumpDates[i]);
		if (dumpIsLocal[i]) {
			assertTrue(
					"Dumpfile " + dumpFiles.get(i) + " should be local.",
					dumpFiles.get(i) instanceof WmfLocalDumpFile);
		} else {
			assertTrue("Dumpfile " + dumpFiles.get(i)
					+ " should be online.",
					dumpFiles.get(i) instanceof WmfOnlineDailyDumpFile);
		}
	}
}