diff --git a/quartz-manager-parent/quartz-manager-starter-security/sonar-project.properties b/quartz-manager-parent/quartz-manager-starter-security/sonar-project.properties new file mode 100644 index 0000000..f80143f --- /dev/null +++ b/quartz-manager-parent/quartz-manager-starter-security/sonar-project.properties @@ -0,0 +1 @@ +sonar.exclusions=**/SpringApplicationTest.java diff --git a/quartz-manager-parent/quartz-manager-starter-security/src/test/java/it/fabioformosa/quartzmanager/api/security/SpringApplicationTest.java b/quartz-manager-parent/quartz-manager-starter-security/src/test/java/it/fabioformosa/quartzmanager/api/security/SpringApplicationTest.java index e33af5a..9e95251 100644 --- a/quartz-manager-parent/quartz-manager-starter-security/src/test/java/it/fabioformosa/quartzmanager/api/security/SpringApplicationTest.java +++ b/quartz-manager-parent/quartz-manager-starter-security/src/test/java/it/fabioformosa/quartzmanager/api/security/SpringApplicationTest.java @@ -1,19 +1,7 @@ package it.fabioformosa.quartzmanager.api.security; -import it.fabioformosa.quartzmanager.api.security.controllers.TestController; -import org.assertj.core.api.Assertions; -import org.junit.jupiter.api.Test; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SpringApplicationTest { - - @Autowired - private TestController testController; - @Test - public void contextLoad(){ - Assertions.assertThat(testController).isNotNull(); - } - }