示例#1
0
 @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());
 }
示例#2
0
 @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());
 }