From a8a96339680fa1c4df5577285442e902b5637631 Mon Sep 17 00:00:00 2001 From: vasraz Date: Wed, 19 Aug 2020 18:01:52 +0100 Subject: Fix Vulnerabilities reported by SONAR Change-Id: I8f4e173a4ea5111db55eebaf15be86f1583082ad Signed-off-by: Vasyl Razinkov Issue-ID: SDC-3248 --- .../be/datatypes/enums/GraphPropertyEnumTest.java | 80 ---------------------- .../enums/JsonPresentationFieldsTest.java | 50 -------------- 2 files changed, 130 deletions(-) (limited to 'common-be/src/test/java') diff --git a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/enums/GraphPropertyEnumTest.java b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/enums/GraphPropertyEnumTest.java index 63d1384cda..c4165d4cc0 100644 --- a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/enums/GraphPropertyEnumTest.java +++ b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/enums/GraphPropertyEnumTest.java @@ -40,86 +40,6 @@ public class GraphPropertyEnumTest { result = GraphPropertyEnum.getByProperty(GraphPropertyEnum.COMPONENT_TYPE.getProperty()); } - @Test - public void testGetProperty() throws Exception { - GraphPropertyEnum testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProperty(); - } - - @Test - public void testSetProperty() throws Exception { - GraphPropertyEnum testSubject; - String property = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setProperty(property); - } - - @Test - public void testGetClazz() throws Exception { - GraphPropertyEnum testSubject; - Class result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getClazz(); - } - - @Test - public void testSetClazz() throws Exception { - GraphPropertyEnum testSubject; - Class clazz = null; - - // default test - testSubject = createTestSubject(); - testSubject.setClazz(clazz); - } - - @Test - public void testIsUnique() throws Exception { - GraphPropertyEnum testSubject; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.isUnique(); - } - - @Test - public void testSetUnique() throws Exception { - GraphPropertyEnum testSubject; - boolean unique = false; - - // default test - testSubject = createTestSubject(); - testSubject.setUnique(unique); - } - - @Test - public void testIsIndexed() throws Exception { - GraphPropertyEnum testSubject; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.isIndexed(); - } - - @Test - public void testSetIndexed() throws Exception { - GraphPropertyEnum testSubject; - boolean indexed = false; - - // default test - testSubject = createTestSubject(); - testSubject.setIndexed(indexed); - } - @Test public void testGetAllProperties() throws Exception { List result; diff --git a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/enums/JsonPresentationFieldsTest.java b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/enums/JsonPresentationFieldsTest.java index b0dc9aaef4..f31b6df3a1 100644 --- a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/enums/JsonPresentationFieldsTest.java +++ b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/enums/JsonPresentationFieldsTest.java @@ -28,46 +28,6 @@ public class JsonPresentationFieldsTest { return JsonPresentationFields.API_URL; } - @Test - public void testGetPresentation() throws Exception { - JsonPresentationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPresentation(); - } - - @Test - public void testSetPresentation() throws Exception { - JsonPresentationFields testSubject; - String presentation = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setPresentation(presentation); - } - - @Test - public void testGetStoredAs() throws Exception { - JsonPresentationFields testSubject; - GraphPropertyEnum result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getStoredAs(); - } - - @Test - public void testSetStoredAs() throws Exception { - JsonPresentationFields testSubject; - GraphPropertyEnum storedAs = null; - - // default test - testSubject = createTestSubject(); - testSubject.setStoredAs(storedAs); - } - @Test public void testGetPresentationByGraphProperty() throws Exception { GraphPropertyEnum property = null; @@ -78,16 +38,6 @@ public class JsonPresentationFieldsTest { result = JsonPresentationFields.getPresentationByGraphProperty(GraphPropertyEnum.INVARIANT_UUID); } - @Test - public void testToString() throws Exception { - JsonPresentationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - @Test public void testGetByPresentation() throws Exception { String presentation = ""; -- cgit 1.2.3-korg