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:
@@ -1,6 +1,9 @@
|
|||||||
package it.fabioformosa.quartzmanager.api;
|
package it.fabioformosa.quartzmanager.api;
|
||||||
|
|
||||||
|
import org.assertj.core.api.Assertions;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
import org.quartz.Scheduler;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.boot.SpringBootConfiguration;
|
import org.springframework.boot.SpringBootConfiguration;
|
||||||
import org.springframework.context.annotation.ComponentScan;
|
import org.springframework.context.annotation.ComponentScan;
|
||||||
|
|
||||||
@@ -8,8 +11,12 @@ import org.springframework.context.annotation.ComponentScan;
|
|||||||
@SpringBootConfiguration
|
@SpringBootConfiguration
|
||||||
public class QuartManagerApplicationTests {
|
public class QuartManagerApplicationTests {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private Scheduler scheduler;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void contextLoads() {
|
public void contextLoads() {
|
||||||
|
Assertions.assertThat(scheduler).isNotNull();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,4 @@ class TriggerControllerTest {
|
|||||||
Mockito.reset(triggerService);
|
Mockito.reset(triggerService);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import org.springframework.util.MultiValueMap;
|
|||||||
|
|
||||||
import static it.fabioformosa.quartzmanager.api.common.config.QuartzManagerPaths.QUARTZ_MANAGER_LOGIN_PATH;
|
import static it.fabioformosa.quartzmanager.api.common.config.QuartzManagerPaths.QUARTZ_MANAGER_LOGIN_PATH;
|
||||||
|
|
||||||
public class AbstractSecurityLoginTest {
|
public abstract class AbstractSecurityLoginTest {
|
||||||
@Autowired
|
@Autowired
|
||||||
private TestRestTemplate testRestTemplate;
|
private TestRestTemplate testRestTemplate;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,19 @@
|
|||||||
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