Exemple #1
0
 @Test
 public void updateTest() {
   File f = fileService.findById(2l);
   //		User u = userService.findById(8l);
   //		Activity a = activityService.findById(8l);
   //		f.setUploader(u.getRealName());
   //		f.setActivity(a);
   Organization o = organizationService.findById(8l);
   f.setOrganization(o);
   fileDao.update(f);
 }
Exemple #2
0
 public void deleteTest() {
   fileDao.delete(fileDao.findById(1l));
 }