Simulate failing test

This commit is contained in:
Sebastian 2023-11-06 08:54:15 +01:00
parent 4ac1d8bbcc
commit 1d7c280e84

View File

@ -31,7 +31,7 @@ public class UserRepositoryTests {
userRepository.save(new User(1L,"FawKes100", "mail@fawkes100.de", "123456"));
Optional<User> findResult = userRepository.findByUsername("FawKes100");
assertTrue(findResult.isPresent());
assertFalse(findResult.isPresent());
assertEquals(new User(1L, "FawKes100", "mail@fawkes100.de", "123456"),findResult.get());
}
}