From a6aac79ddd1ceb9fc1529dab5fae66f7c7efffdb Mon Sep 17 00:00:00 2001 From: aribeiro Date: Tue, 30 Mar 2021 16:24:20 +0100 Subject: Revert "Improve test coverage" This reverts commit 1da764ea Issue-ID: SDC-3540 Change-Id: I54b65e1d5323dcc680c5bb65fa1657b7adb6741d Signed-off-by: aribeiro --- .../ProductMetadataDataDefinitionTest.java | 103 +++++++++++++++++++++ 1 file changed, 103 insertions(+) (limited to 'common-be/src/test/java/org/openecomp') diff --git a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/ProductMetadataDataDefinitionTest.java b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/ProductMetadataDataDefinitionTest.java index c3a127c8ff..bcd04bc1b2 100644 --- a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/ProductMetadataDataDefinitionTest.java +++ b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/ProductMetadataDataDefinitionTest.java @@ -31,6 +31,51 @@ public class ProductMetadataDataDefinitionTest { return new ProductMetadataDataDefinition(); } + + @Test + public void testGetIsActive() throws Exception { + ProductMetadataDataDefinition testSubject; + Boolean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIsActive(); + } + + + @Test + public void testSetIsActive() throws Exception { + ProductMetadataDataDefinition testSubject; + Boolean active = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIsActive(active); + } + + + @Test + public void testGetContacts() throws Exception { + ProductMetadataDataDefinition testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getContacts(); + } + + + @Test + public void testSetContacts() throws Exception { + ProductMetadataDataDefinition testSubject; + List contacts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setContacts(contacts); + } + + @Test public void testAddContact() throws Exception { ProductMetadataDataDefinition testSubject; @@ -47,6 +92,64 @@ public class ProductMetadataDataDefinitionTest { testSubject.addContact(contact); } + + @Test + public void testGetFullName() throws Exception { + ProductMetadataDataDefinition testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFullName(); + } + + + @Test + public void testSetFullName() throws Exception { + ProductMetadataDataDefinition testSubject; + String fullName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFullName(fullName); + } + + + @Test + public void testToString() throws Exception { + ProductMetadataDataDefinition testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + + @Test + public void testHashCode() throws Exception { + ProductMetadataDataDefinition testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + + @Test + public void testEquals() throws Exception { + ProductMetadataDataDefinition testSubject; + Object obj = null; + boolean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.equals(obj); + result = testSubject.equals(testSubject); + result = testSubject.equals(createTestSubject()); + } + @Test public void testGetActualComponentType() throws Exception { ProductMetadataDataDefinition testSubject; -- cgit 1.2.3-korg