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