tests #43
@ -31,7 +31,7 @@ public class UserRepositoryTests {
|
||||
userRepository.save(new User(1L,"FawKes100", "mail@fawkes100.de", "123456"));
|
||||
|
||||
Optional<User> findResult = userRepository.findByUsername("FawKes100");
|
||||
assertFalse(findResult.isPresent());
|
||||
assertTrue(findResult.isPresent());
|
||||
assertEquals(new User(1L, "FawKes100", "mail@fawkes100.de", "123456"),findResult.get());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user