/**
  * Test method for {@link
  * org.sms.project.resource.service.impl.ResourceServiceImpl#insert(org.sms.project.resource.entity.Resource)}.
  */
 @Test
 public void testInsert() {
   Resource resource = new Resource();
   resource.setUrl("/baidu/create/" + UUIDFactory.INSTANCE.getUUID());
   resource.setCreate_user_id(67L);
   resource.setType("page");
   resource.setDescription("dfghjkl");
   resource.setName("Opnine");
   resource.setUsable_status("1");
   int i = resourceService.insert(resource);
   Assert.assertNotSame(0, i);
 }
 /**
  * Test method for {@link
  * org.sms.project.resource.service.impl.ResourceServiceImpl#update(org.sms.project.resource.entity.Resource)}.
  */
 @Test
 public void testUpdate() {
   Resource resource = new Resource();
   resource.setUrl("/baidu/create/" + UUIDFactory.INSTANCE.getUUID());
   resource.setModify_user_id(67L);
   resource.setType("page");
   resource.setDescription("dfghjkl");
   resource.setName("Opnine");
   resource.setUsable_status("1");
   resource.setId(8L);
   SimpleDateFormat sdf = new SimpleDateFormat("YYYY-MM-dd HH:mm:ss");
   Date date = new Date();
   String str = sdf.format(date);
   resource.setModify_date(str);
   int i = resourceService.update(resource);
   Assert.assertNotSame(0, i);
 }