示例#1
0
 @Test
 public void test_DeleteUser_CallsCloseMethodOfEntityManager_WhenCalled() {
   removeUser.deleteUser(mockId);
   verify(mockEntityManager).close();
 }
示例#2
0
 @Test
 public void test_DeleteUser_CallsFindMethodOfEntityManager_WhenCalled() {
   removeUser.deleteUser(mockId);
   verify(mockEntityManager).find(User.class, mockId);
 }