/** Test of testDirectoryAnalyser method, of class FileSystemAnalyzer. */ @Test public void testDirectoryAnalyser() throws Exception { System.out.println("testDirectoryAnalyser"); FileSystemAnalyzer instance = new FileSystemAnalyzer(); // Update the property file testPropertyReader(); String folderPath = "C:\\Youdyog\\PublicPhone"; System.out.println( DataUtility.getCurrentTimeStamp() + ", Starting the folder enlister test code: " + folderPath); File file = new File(folderPath); instance.updateFolderMetaDataStore(file); System.out.println("--------"); System.out.println(DataUtility.getCurrentTimeStamp() + ", Dirs : " + lFolderMetaDataStore); System.out.println( DataUtility.getCurrentTimeStamp() + ", Files : " + lFileMetaDataStore.size()); System.out.println("--------"); instance.updateAnalyzedDirectoryDataStore(folderPath); // Fetch the updated dataset // get the mAnalyzedDataStore ArrayList<AnalyzedData> lAnalyzed = mAnalyzedDataStore.get(folderPath); for (AnalyzedData ad : lAnalyzed) { System.out.println( "Group/Category Name: " + ad.dataGroupStatistics.dataType + ", Size: " + ad.dataGroupStatistics.dataCount); for (DataStats ds : ad.listDataSatistics) { System.out.println(" -Ext: " + ds.dataType + ", Size: " + ds.dataCount); } } }