@Test public void visitFolderImplTest() { VisitFolder visitFolder = (VisitFolderImpl) context.getBean("visitFolder"); List<String> paths = DirDataImpl.dividePath(rootPath, 30, THREADS); List<FolderData> data = visitFolder.visit(paths.get(4)); assertEquals(99996, data.size()); }
@Test public void insertTest() { VisitFolder visitFolder = (VisitFolderImpl) context.getBean("visitFolder"); List<String> paths = DirDataImpl.dividePath(rootPath, 30, THREADS); List<FolderData> data = visitFolder.visit(paths.get(4)); System.out.println(paths.get(4)); fileDAO.insert(data); assertEquals(99996, count()); }