@Test public void testInsertResource() throws Exception { DJResource resource = DomainUtil.getResourceList(1).get(0); DJSystem system = new DJSystem(); system.id=1; DJRole role = DomainUtil.getRole(); role.id=2; List<DJRole> roles = new ArrayList<DJRole>(); roles.add(role); resource.system=system; resource.roles=roles; resourceService.insertResource(resource); }
public void insertResource(DJResource resource) { resourceDao.inserte(resource); }
ResourceServiceImpl implements ResourceService { public void insertResource(DJResource resource) { resourceDao.inserte(resource); } }
ResourceServiceImpl implements ResourceService { public void insertResource(DJResource resource) { resourceDao.inserte(resource); }  }
ResourceServiceImpl implements ResourceService { public void insertResource(DJResource resource) { resourceDao.inserte(resource); }  void setSystemDao(SystemDao systemDao); void setResourceDao(ResourceDao resourceDao); DJResource findResourceByResourceId(Integer id); void insertResource(DJResource resource); void updateResource(DJResource resource); }
ResourceServiceImpl implements ResourceService { public void insertResource(DJResource resource) { resourceDao.inserte(resource); }  void setSystemDao(SystemDao systemDao); void setResourceDao(ResourceDao resourceDao); DJResource findResourceByResourceId(Integer id); void insertResource(DJResource resource); void updateResource(DJResource resource);  }