1 package de.example.custom.java.checks;
4 import org.sonar.java.checks.verifier.JavaCheckVerifier;
6 public class SpringServiceInstanceFieldCheckTest {
7 private static final String NAMED_ANNOTATION = "src/test/files/checks/SpringServiceNamedAnnotationInstanceFieldCheck.java";
8 private static final String SPRING_SERVICE_ANNOTATION = "src/test/files/checks/SpringServiceAnnotationInstanceFieldCheck.java";
11 public void whenNamedAnnotationAndNoStaticOrFinalField() {
12 JavaCheckVerifier.verify(NAMED_ANNOTATION, new SpringServiceInstanceFieldCheck());
16 public void whenSpringServiceAnnotationAndNoStaticOrFinalField() {
17 JavaCheckVerifier.verify(SPRING_SERVICE_ANNOTATION, new SpringServiceInstanceFieldCheck());