From 1d7c280e84cc07a28ffb2103f7805976a06d3da0 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 6 Nov 2023 08:54:15 +0100 Subject: [PATCH] Simulate failing test --- backend/src/test/java/core/users/UserRepositoryTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/test/java/core/users/UserRepositoryTests.java b/backend/src/test/java/core/users/UserRepositoryTests.java index 66e9ca4..7fc0b6e 100644 --- a/backend/src/test/java/core/users/UserRepositoryTests.java +++ b/backend/src/test/java/core/users/UserRepositoryTests.java @@ -31,7 +31,7 @@ public class UserRepositoryTests { userRepository.save(new User(1L,"FawKes100", "mail@fawkes100.de", "123456")); Optional findResult = userRepository.findByUsername("FawKes100"); - assertTrue(findResult.isPresent()); + assertFalse(findResult.isPresent()); assertEquals(new User(1L, "FawKes100", "mail@fawkes100.de", "123456"),findResult.get()); } }