mirror of
https://github.com/fabioformosa/quartz-manager.git
synced 2026-05-14 22:00:30 +09:00
#78 fixed sonar smells
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
sonar.exclusions=**/SpringApplicationTest.java
|
||||||
@@ -1,19 +1,7 @@
|
|||||||
package it.fabioformosa.quartzmanager.api.security;
|
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;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class SpringApplicationTest {
|
public class SpringApplicationTest {
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private TestController testController;
|
|
||||||
@Test
|
|
||||||
public void contextLoad(){
|
|
||||||
Assertions.assertThat(testController).isNotNull();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user