Suppress irrelevant Sonar warnings
authorBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Fri, 14 Feb 2020 06:59:56 +0000 (07:59 +0100)
committerBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Fri, 14 Feb 2020 06:59:56 +0000 (07:59 +0100)
Issue-ID: AAF-995
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Change-Id: Id9181ccbf2e3e534f5f9c808924b174c1c86ce2f

certService/src/main/java/org/onap/aaf/certservice/CertServiceApplication.java
certService/src/test/java/org/onap/aaf/certservice/CertServiceApplicationTests.java

index c121e7c..e6b27ca 100644 (file)
@@ -26,7 +26,9 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
 @SpringBootApplication
 public class CertServiceApplication {
 
-    public static void main(String[] args) {
+    // We are excluding this line in Sonar due to fact that
+    // Spring is handling arguments
+    public static void main(String[] args) { // NOSONAR
         SpringApplication.run(CertServiceApplication.class, args);
     }
 
index fe2dcfe..ae284da 100644 (file)
@@ -27,7 +27,8 @@ import org.springframework.boot.test.context.SpringBootTest;
 class CertServiceApplicationTests {
 
     @Test
-    void contextLoads() {
+    // We are excluding this line in Sonar due to fact that
+    // this test checks if Spring context is loaded and does not require assertion
+    void contextLoads() { // NOSONAR
     }
-
 }