diff options
author | Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> | 2020-02-14 07:59:56 +0100 |
---|---|---|
committer | Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> | 2020-02-14 07:59:56 +0100 |
commit | c69b37ae471d0671870ad6a91014fa1688de611b (patch) | |
tree | 29a0831c6c8f233fd0ccb4e1d851cf57e3419825 | |
parent | 1cb5555123aef20f2f3e4255629ea532214666bc (diff) |
Suppress irrelevant Sonar warnings
Issue-ID: AAF-995
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Change-Id: Id9181ccbf2e3e534f5f9c808924b174c1c86ce2f
-rw-r--r-- | certService/src/main/java/org/onap/aaf/certservice/CertServiceApplication.java | 4 | ||||
-rw-r--r-- | certService/src/test/java/org/onap/aaf/certservice/CertServiceApplicationTests.java | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/certService/src/main/java/org/onap/aaf/certservice/CertServiceApplication.java b/certService/src/main/java/org/onap/aaf/certservice/CertServiceApplication.java index c121e7c9..e6b27ca8 100644 --- a/certService/src/main/java/org/onap/aaf/certservice/CertServiceApplication.java +++ b/certService/src/main/java/org/onap/aaf/certservice/CertServiceApplication.java @@ -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); } diff --git a/certService/src/test/java/org/onap/aaf/certservice/CertServiceApplicationTests.java b/certService/src/test/java/org/onap/aaf/certservice/CertServiceApplicationTests.java index fe2dcfe2..ae284da3 100644 --- a/certService/src/test/java/org/onap/aaf/certservice/CertServiceApplicationTests.java +++ b/certService/src/test/java/org/onap/aaf/certservice/CertServiceApplicationTests.java @@ -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 } - } |