XGroupUserService extends
		XGroupUserServiceBase<XXGroupUser, VXGroupUser> { public List<XXTrxLog> getTransactionLog(VXGroupUser vXGroupUser, String action){ return getTransactionLog(vXGroupUser, null, action); } XGroupUserService(); VXGroupUser createXGroupUserWithOutLogin(VXGroupUser vxGroupUser); VXGroupUser readResourceWithOutLogin(Long id); List<XXTrxLog> getTransactionLog(VXGroupUser vXGroupUser, String action); List<XXTrxLog> getTransactionLog(VXGroupUser vObj, XXGroupUser mObj, String action);  }
@Test public void test2GetTransactionLog() { VXGroupUser vXGroupUser = createVXGroupUser(); Mockito.when(daoManager.getXXGroup()).thenReturn(xXGroupDao); XXGroup xGroup = createXXGroup(); Mockito.when(xXGroupDao.getById(1L)).thenReturn(xGroup); Mockito.when(daoManager.getXXUser()).thenReturn(xXUserDao); XXUser xUser = createXXUser(); Mockito.when(xXUserDao.getById(1L)).thenReturn(xUser); xGroupUserService.getTransactionLog(vXGroupUser, "create"); }
@Test public void test3GetTransactionLog() { VXGroupUser vObj = createVXGroupUser(); XXGroupUser mObj = createXXGroupUser(); Mockito.when(daoManager.getXXGroup()).thenReturn(xXGroupDao); XXGroup xGroup = createXXGroup(); Mockito.when(xXGroupDao.getById(1L)).thenReturn(xGroup); Mockito.when(daoManager.getXXUser()).thenReturn(xXUserDao); XXUser xUser = createXXUser(); Mockito.when(xXUserDao.getById(1L)).thenReturn(xUser); xGroupUserService.getTransactionLog(vObj, mObj, "create"); }