test_class.declarator: wrf
test_class.original_string: MockWebResourceFetcher wrf;
test_class.type: MockWebResourceFetcher
test_class.var_name: wrf
test_class.declarator: dm
test_class.original_string: MockDirectoryManager dm;
test_class.type: MockDirectoryManager
test_class.var_name: dm
test_class.declarator: dmPath
test_class.original_string: Path dmPath;
test_class.type: Path
test_class.var_name: dmPath
test_class.file: wdtk-dumpfiles/src/test/java/org/wikidata/wdtk/dumpfiles/wmf/WmfDumpFileManagerTest.java
test_class.identifier: WmfDumpFileManagerTest
test_case.body: @Test
  	public void getAllCurrentDumpsOffline() throws IOException {
  		setLocalDump("20140220", DumpContentType.CURRENT, true);
  		setLocalDump("20140205", DumpContentType.CURRENT, true);
  
  		WmfDumpFileManager dumpFileManager = new WmfDumpFileManager(
  				"wikidatawiki", dm, null);
  
  		List<? extends MwDumpFile> dumpFiles = dumpFileManager
  				.findAllDumps(DumpContentType.CURRENT);
  
  		String[] dumpDates = { "20140220", "20140205" };
  
  		assertEquals(dumpFiles.size(), dumpDates.length);
  		for (int i = 0; i < dumpFiles.size(); i++) {
  			assertEquals(dumpFiles.get(i).getDumpContentType(),
  					DumpContentType.CURRENT);
  			assertEquals(dumpFiles.get(i).getDateStamp(), dumpDates[i]);
  			assertTrue(dumpFiles.get(i) instanceof WmfLocalDumpFile);
  		}
  	}
test_case.class_method_signature: WmfDumpFileManagerTest.getAllCurrentDumpsOffline()
test_case.full_signature: @Test public void getAllCurrentDumpsOffline()
test_case.identifier: getAllCurrentDumpsOffline
test_case.invocations: setLocalDump setLocalDump findAllDumps assertEquals size size assertEquals getDumpContentType get assertEquals getDateStamp get assertTrue get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getAllCurrentDumpsOffline()
focal_class.declarator: logger = LoggerFactory
  			.getLogger(WmfDumpFileManager.class)
focal_class.modifier: static final
focal_class.original_string: static final Logger logger = LoggerFactory
  			.getLogger(WmfDumpFileManager.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: DATE_STAMP_PATTERN = "\\d\\d\\d\\d\\d\\d\\d\\d"
focal_class.modifier: static final
focal_class.original_string: static final String DATE_STAMP_PATTERN = "\\d\\d\\d\\d\\d\\d\\d\\d";
focal_class.type: String
focal_class.var_name: DATE_STAMP_PATTERN
focal_class.declarator: DOWNLOAD_DIRECTORY_NAME = "dumpfiles"
focal_class.modifier: public static final
focal_class.original_string: public static final String DOWNLOAD_DIRECTORY_NAME = "dumpfiles";
focal_class.type: String
focal_class.var_name: DOWNLOAD_DIRECTORY_NAME
focal_class.declarator: projectName
focal_class.modifier: final
focal_class.original_string: final String projectName;
focal_class.type: String
focal_class.var_name: projectName
focal_class.declarator: dumpfileDirectoryManager
focal_class.modifier: final
focal_class.original_string: final DirectoryManager dumpfileDirectoryManager;
focal_class.type: DirectoryManager
focal_class.var_name: dumpfileDirectoryManager
focal_class.declarator: webResourceFetcher
focal_class.modifier: final
focal_class.original_string: final WebResourceFetcher webResourceFetcher;
focal_class.type: WebResourceFetcher
focal_class.var_name: webResourceFetcher
focal_class.file: wdtk-dumpfiles/src/main/java/org/wikidata/wdtk/dumpfiles/wmf/WmfDumpFileManager.java
focal_class.identifier: WmfDumpFileManager
focal_class.class_method_signature: WmfDumpFileManager.WmfDumpFileManager(String projectName,
  			DirectoryManager downloadDirectoryManager,
  			WebResourceFetcher webResourceFetcher)
focal_class.full_signature: public  WmfDumpFileManager(String projectName,
  			DirectoryManager downloadDirectoryManager,
  			WebResourceFetcher webResourceFetcher)
focal_class.identifier: WmfDumpFileManager
focal_class.modifiers: public
focal_class.parameters: (String projectName,
  			DirectoryManager downloadDirectoryManager,
  			WebResourceFetcher webResourceFetcher)
focal_class.signature:  WmfDumpFileManager(String projectName,
  			DirectoryManager downloadDirectoryManager,
  			WebResourceFetcher webResourceFetcher)
focal_class.class_method_signature: WmfDumpFileManager.findAllRelevantRevisionDumps(boolean preferCurrent)
focal_class.full_signature: public List<MwDumpFile> findAllRelevantRevisionDumps(boolean preferCurrent)
focal_class.identifier: findAllRelevantRevisionDumps
focal_class.modifiers: public
focal_class.parameters: (boolean preferCurrent)
focal_class.return: List<MwDumpFile>
focal_class.signature: List<MwDumpFile> findAllRelevantRevisionDumps(boolean preferCurrent)
focal_class.class_method_signature: WmfDumpFileManager.findMostRecentDump(DumpContentType dumpContentType)
focal_class.full_signature: public MwDumpFile findMostRecentDump(DumpContentType dumpContentType)
focal_class.identifier: findMostRecentDump
focal_class.modifiers: public
focal_class.parameters: (DumpContentType dumpContentType)
focal_class.return: MwDumpFile
focal_class.signature: MwDumpFile findMostRecentDump(DumpContentType dumpContentType)
focal_class.class_method_signature: WmfDumpFileManager.findAllDumps(DumpContentType dumpContentType)
focal_class.full_signature: public List<MwDumpFile> findAllDumps(DumpContentType dumpContentType)
focal_class.identifier: findAllDumps
focal_class.modifiers: public
focal_class.parameters: (DumpContentType dumpContentType)
focal_class.return: List<MwDumpFile>
focal_class.signature: List<MwDumpFile> findAllDumps(DumpContentType dumpContentType)
focal_class.class_method_signature: WmfDumpFileManager.mergeDumpLists(List<MwDumpFile> localDumps,
  			List<MwDumpFile> onlineDumps)
focal_class.full_signature:  List<MwDumpFile> mergeDumpLists(List<MwDumpFile> localDumps,
  			List<MwDumpFile> onlineDumps)
focal_class.identifier: mergeDumpLists
focal_class.parameters: (List<MwDumpFile> localDumps,
  			List<MwDumpFile> onlineDumps)
focal_class.return: List<MwDumpFile>
focal_class.signature: List<MwDumpFile> mergeDumpLists(List<MwDumpFile> localDumps,
  			List<MwDumpFile> onlineDumps)
focal_class.class_method_signature: WmfDumpFileManager.findDumpsLocally(DumpContentType dumpContentType)
focal_class.full_signature:  List<MwDumpFile> findDumpsLocally(DumpContentType dumpContentType)
focal_class.identifier: findDumpsLocally
focal_class.parameters: (DumpContentType dumpContentType)
focal_class.return: List<MwDumpFile>
focal_class.signature: List<MwDumpFile> findDumpsLocally(DumpContentType dumpContentType)
focal_class.class_method_signature: WmfDumpFileManager.findDumpsOnline(DumpContentType dumpContentType)
focal_class.full_signature:  List<MwDumpFile> findDumpsOnline(DumpContentType dumpContentType)
focal_class.identifier: findDumpsOnline
focal_class.parameters: (DumpContentType dumpContentType)
focal_class.return: List<MwDumpFile>
focal_class.signature: List<MwDumpFile> findDumpsOnline(DumpContentType dumpContentType)
focal_class.class_method_signature: WmfDumpFileManager.findDumpDatesOnline(DumpContentType dumpContentType)
focal_class.full_signature:  List<String> findDumpDatesOnline(DumpContentType dumpContentType)
focal_class.identifier: findDumpDatesOnline
focal_class.parameters: (DumpContentType dumpContentType)
focal_class.return: List<String>
focal_class.signature: List<String> findDumpDatesOnline(DumpContentType dumpContentType)
focal_method.body: public List<MwDumpFile> findAllDumps(DumpContentType dumpContentType) {
  		List<MwDumpFile> localDumps = findDumpsLocally(dumpContentType);
  		if (this.webResourceFetcher != null) {
  			List<MwDumpFile> onlineDumps = findDumpsOnline(dumpContentType);
  			return mergeDumpLists(localDumps, onlineDumps);
  		} else {
  			return localDumps;
  		}
  	}
focal_method.class_method_signature: WmfDumpFileManager.findAllDumps(DumpContentType dumpContentType)
focal_method.full_signature: public List<MwDumpFile> findAllDumps(DumpContentType dumpContentType)
focal_method.identifier: findAllDumps
focal_method.invocations: findDumpsLocally findDumpsOnline mergeDumpLists
focal_method.modifiers: public
focal_method.parameters: (DumpContentType dumpContentType)
focal_method.return: List<MwDumpFile>
focal_method.signature: List<MwDumpFile> findAllDumps(DumpContentType dumpContentType)