summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/test/java/org/openecomp
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2020-08-19 18:01:52 +0100
committerVasyl Razinkov <vasyl.razinkov@est.tech>2020-09-07 19:22:41 +0000
commita8a96339680fa1c4df5577285442e902b5637631 (patch)
tree36d11a6db3ef6f9e12fd6d330c2394a39a8c325c /common-app-api/src/test/java/org/openecomp
parent7f5501ed9e9807a4e5a17c06dd9b5989cced11aa (diff)
Fix Vulnerabilities reported by SONAR
Change-Id: I8f4e173a4ea5111db55eebaf15be86f1583082ad Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3248
Diffstat (limited to 'common-app-api/src/test/java/org/openecomp')
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/api/ArtifactGroupTypeEnumTest.java23
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/api/YamlSuffixEnumTest.java23
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/AuditingFieldsKeyTest.java64
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/MonitoringFieldsKeysEnumTest.java64
4 files changed, 0 insertions, 174 deletions
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/api/ArtifactGroupTypeEnumTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/api/ArtifactGroupTypeEnumTest.java
index 768ac4eaf4..185134a52b 100644
--- a/common-app-api/src/test/java/org/openecomp/sdc/common/api/ArtifactGroupTypeEnumTest.java
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/api/ArtifactGroupTypeEnumTest.java
@@ -31,29 +31,6 @@ public class ArtifactGroupTypeEnumTest {
return ArtifactGroupTypeEnum.DEPLOYMENT;
}
-
- @Test
- public void testGetType() throws Exception {
- ArtifactGroupTypeEnum testSubject;
- String result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getType();
- }
-
-
- @Test
- public void testSetType() throws Exception {
- ArtifactGroupTypeEnum testSubject;
- String type = "";
-
- // default test
- testSubject = createTestSubject();
- testSubject.setType(ArtifactGroupTypeEnum.DEPLOYMENT.getType());
- }
-
-
@Test
public void testFindType() throws Exception {
String type = "";
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/api/YamlSuffixEnumTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/api/YamlSuffixEnumTest.java
index e201386d2f..8cc7862038 100644
--- a/common-app-api/src/test/java/org/openecomp/sdc/common/api/YamlSuffixEnumTest.java
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/api/YamlSuffixEnumTest.java
@@ -31,29 +31,6 @@ public class YamlSuffixEnumTest {
return YamlSuffixEnum.YAML;
}
-
- @Test
- public void testGetSuffix() throws Exception {
- YamlSuffixEnum testSubject;
- String result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getSuffix();
- }
-
-
- @Test
- public void testSetSuufix() throws Exception {
- YamlSuffixEnum testSubject;
- String suffix = "";
-
- // default test
- testSubject = createTestSubject();
- testSubject.setSuufix(suffix);
- }
-
-
@Test
public void testGetSuffixes() throws Exception {
List<String> result;
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/AuditingFieldsKeyTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/AuditingFieldsKeyTest.java
deleted file mode 100644
index 5e4fd9a5c2..0000000000
--- a/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/AuditingFieldsKeyTest.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.sdc.common.datastructure;
-
-import org.junit.Test;
-
-
-public class AuditingFieldsKeyTest {
-
- private AuditingFieldsKey createTestSubject() {
- return AuditingFieldsKey.AUDIT_ACTION;
- }
-
-
- @Test
- public void testGetValueClass() throws Exception {
- AuditingFieldsKey testSubject;
- Class<?> result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getValueClass();
- }
-
-
- @Test
- public void testGetDisplayName() throws Exception {
- AuditingFieldsKey testSubject;
- String result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getDisplayName();
- }
-
-
- @Test
- public void testSetDisplayName() throws Exception {
- AuditingFieldsKey testSubject;
- String displayName = "";
-
- // default test
- testSubject = createTestSubject();
- testSubject.setDisplayName(displayName);
- }
-}
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/MonitoringFieldsKeysEnumTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/MonitoringFieldsKeysEnumTest.java
deleted file mode 100644
index 16817a12c4..0000000000
--- a/common-app-api/src/test/java/org/openecomp/sdc/common/datastructure/MonitoringFieldsKeysEnumTest.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.sdc.common.datastructure;
-
-import org.junit.Test;
-
-
-public class MonitoringFieldsKeysEnumTest {
-
- private MonitoringFieldsKeysEnum createTestSubject() {
- return MonitoringFieldsKeysEnum.MONITORING_APP_ID;
- }
-
-
- @Test
- public void testGetValueClass() throws Exception {
- MonitoringFieldsKeysEnum testSubject;
- Class<?> result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getValueClass();
- }
-
-
- @Test
- public void testGetDisplayName() throws Exception {
- MonitoringFieldsKeysEnum testSubject;
- String result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getDisplayName();
- }
-
-
- @Test
- public void testSetDisplayName() throws Exception {
- MonitoringFieldsKeysEnum testSubject;
- String displayName = "";
-
- // default test
- testSubject = createTestSubject();
- testSubject.setDisplayName(displayName);
- }
-}