Skip to content

Commit

Permalink
fix: suppressed sonar warnings and removed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Toto-hitori committed Apr 24, 2024
1 parent c2f4dae commit e69b155
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/src/main/java/lab/en2b/quizapi/game/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import java.util.List;

import static lab.en2b.quizapi.game.GameMode.*;

@SuppressWarnings("java:S1068")
@Entity
@Table(name = "games")
@NoArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import java.util.List;

@SuppressWarnings("java:S1068")
@Entity
@Table(name = "answers")
@NoArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import java.util.List;

@SuppressWarnings("java:S1068")
@Entity
@Table(name = "questions")
@NoArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand All @@ -40,9 +38,6 @@ public class StatisticsServiceTest {
@Mock
private StatisticsRepository statisticsRepository;

@Mock
private Authentication authentication;

@Mock
private GameRepository gameRepository;

Expand Down

0 comments on commit e69b155

Please sign in to comment.