tests #43

Merged
sebastian merged 41 commits from tests into master 2023-11-11 11:20:50 +01:00
Showing only changes of commit 1d7c280e84 - Show all commits

View File

@ -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());
} }
} }