XGroupPermissionService extends XGroupPermissionServiceBase<XXGroupPermission, VXGroupPermission> { @Override public VXGroupPermission populateViewBean(XXGroupPermission xObj) { VXGroupPermission vObj = super.populateViewBean(xObj); XXGroup xGroup = daoManager.getXXGroup().getById( xObj.getGroupId()); if (xGroup == null) { throw restErrorUtil.createRESTException(xGroup + " is Not Found", MessageEnums.DATA_NOT_FOUND); } vObj.setGroupName(xGroup.getName()); return vObj; } XGroupPermissionService(); @Override VXGroupPermission populateViewBean(XXGroupPermission xObj); List<VXGroupPermission> getPopulatedVXGroupPermissionList(List<XXGroupPermission> xgroupPermissionList,Map<Long, XXGroup> xXGroupMap,VXModuleDef vModuleDef);  }
@Test public void test1PopulateViewBean() { xGroupPermissionService.populateViewBean(xXGroupPermission); }