diff --git a/src/test/java/fr/greencodeinitiative/java/JavaRulesDefinitionTest.java b/src/test/java/fr/greencodeinitiative/java/JavaRulesDefinitionTest.java index 0c0b373..ad1b536 100644 --- a/src/test/java/fr/greencodeinitiative/java/JavaRulesDefinitionTest.java +++ b/src/test/java/fr/greencodeinitiative/java/JavaRulesDefinitionTest.java @@ -29,14 +29,12 @@ import org.sonar.api.utils.Version; import static org.assertj.core.api.Assertions.assertThat; -import static org.assertj.core.api.Assertions.fail; import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.mock; class JavaRulesDefinitionTest { private RulesDefinition.Repository repository; - private RulesDefinition.Context context; private int rulesSize; diff --git a/src/test/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoopTest.java b/src/test/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoopTest.java index 8083c1d..c957692 100644 --- a/src/test/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoopTest.java +++ b/src/test/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoopTest.java @@ -22,7 +22,7 @@ class AvoidGettingSizeCollectionInLoopTest { @Test - public void testBadForLoop() { + void testBadForLoop() { CheckVerifier.newVerifier() .onFile("src/test/files/AvoidGettingSizeCollectionInForLoopBad.java") .withCheck(new AvoidGettingSizeCollectionInLoop())