use of org.summerb.microservices.users.api.dto.User in project summerb by skarpushin.
the class UserDaoImplTest method testDeleteUser_expectUserWillNotBeFoundAfterDeletition.
@Test
public void testDeleteUser_expectUserWillNotBeFoundAfterDeletition() throws Exception {
User userToCreate = UserFactory.createNewUserTemplate();
userToCreate = userService.createUser(userToCreate);
userService.deleteUserByUuid(userToCreate.getUuid());
try {
userService.getUserByEmail(userToCreate.getEmail());
fail();
} catch (UserNotFoundException e) {
// it's expected
}
}
Aggregations