예제 #1
0
 @Test
 public void updateFileFoderTest() {
   FileFoder fileFoder = fileFoderService.getFoder(81);
   fileFoder.setFoderName("垃圾箱");
   boolean a = fileFoderService.updateFoder(fileFoder);
   System.out.println(a);
 }
예제 #2
0
 @Test
 public void addFileFoderTest() {
   FileFoder fileFoder = new FileFoder();
   fileFoder.setFoderName("垃圾箱");
   boolean a = fileFoderService.addFoder(fileFoder);
   System.out.println(a);
 }
예제 #3
0
 @Test
 public void getFileFodersTest() {
   List foders = fileFoderService.getFoders();
   if (foders != null) {
     for (Object foder : foders) {
       FileFoder f = (FileFoder) foder;
       System.out.println(f.getFoderName());
     }
   }
 }
예제 #4
0
 @Test
 public void deleteFileFoderTest() {
   FileFoder fileFoder = fileFoderService.getFoder(81);
   boolean a = fileFoderService.deleteFoder(fileFoder);
   System.out.println(a);
 }
예제 #5
0
 @Test
 public void getFileFoderTest() {
   FileFoder foder = fileFoderService.getFoder(81);
   System.out.println(foder.getFoderName());
 }