Code Review
/
oom
/
platform
/
cert-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 1:
af6d01e
)
Merge "Suppress irrelevant Sonar warnings"
author
Bogumil Zebek
<bogumil.zebek@nokia.com>
Fri, 14 Feb 2020 07:42:58 +0000
(07:42 +0000)
committer
Gerrit Code Review
<gerrit@onap.org>
Fri, 14 Feb 2020 07:42:58 +0000
(07:42 +0000)
certService/src/main/java/org/onap/aaf/certservice/CertServiceApplication.java
patch
|
blob
|
history
certService/src/test/java/org/onap/aaf/certservice/CertServiceApplicationTests.java
patch
|
blob
|
history
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
c121e7c
..
e6b27ca
100644
(file)
--- 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
fe2dcfe
..
ae284da
100644
(file)
--- 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
}
-
}