diff --git a/api/src/main/java/lab/en2b/quizapi/game/Game.java b/api/src/main/java/lab/en2b/quizapi/game/Game.java index a12cb59d..c359fd79 100644 --- a/api/src/main/java/lab/en2b/quizapi/game/Game.java +++ b/api/src/main/java/lab/en2b/quizapi/game/Game.java @@ -15,7 +15,7 @@ import java.util.List; import static lab.en2b.quizapi.game.GameMode.*; - +@SuppressWarnings("java:S1068") @Entity @Table(name = "games") @NoArgsConstructor diff --git a/api/src/main/java/lab/en2b/quizapi/questions/answer/Answer.java b/api/src/main/java/lab/en2b/quizapi/questions/answer/Answer.java index 1c8bd8ad..a9d2b77f 100644 --- a/api/src/main/java/lab/en2b/quizapi/questions/answer/Answer.java +++ b/api/src/main/java/lab/en2b/quizapi/questions/answer/Answer.java @@ -6,6 +6,7 @@ import java.util.List; +@SuppressWarnings("java:S1068") @Entity @Table(name = "answers") @NoArgsConstructor diff --git a/api/src/main/java/lab/en2b/quizapi/questions/question/Question.java b/api/src/main/java/lab/en2b/quizapi/questions/question/Question.java index 17234423..30662f27 100644 --- a/api/src/main/java/lab/en2b/quizapi/questions/question/Question.java +++ b/api/src/main/java/lab/en2b/quizapi/questions/question/Question.java @@ -9,6 +9,7 @@ import java.util.List; +@SuppressWarnings("java:S1068") @Entity @Table(name = "questions") @NoArgsConstructor diff --git a/api/src/test/java/lab/en2b/quizapi/statistics/StatisticsServiceTest.java b/api/src/test/java/lab/en2b/quizapi/statistics/StatisticsServiceTest.java index 85061f87..cdbfdd7d 100644 --- a/api/src/test/java/lab/en2b/quizapi/statistics/StatisticsServiceTest.java +++ b/api/src/test/java/lab/en2b/quizapi/statistics/StatisticsServiceTest.java @@ -1,7 +1,6 @@ package lab.en2b.quizapi.statistics; import ch.qos.logback.core.util.TimeUtil; -import jakarta.validation.constraints.AssertFalse; import lab.en2b.quizapi.commons.user.User; import lab.en2b.quizapi.commons.user.dtos.UserResponseDto; import lab.en2b.quizapi.commons.user.UserService; @@ -23,7 +22,6 @@ import java.util.List; import java.util.Optional; -import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; @@ -40,9 +38,6 @@ public class StatisticsServiceTest { @Mock private StatisticsRepository statisticsRepository; - @Mock - private Authentication authentication; - @Mock private GameRepository gameRepository;