diff options
author | aribeiro <anderson.ribeiro@est.tech> | 2021-03-30 16:24:20 +0100 |
---|---|---|
committer | Christophe Closset <christophe.closset@intl.att.com> | 2021-03-31 06:50:08 +0000 |
commit | a6aac79ddd1ceb9fc1529dab5fae66f7c7efffdb (patch) | |
tree | 67b719113d8b639c0f625373f23f8969b7c94941 /common-be/src/test/java | |
parent | f27bba9ad6e8afe8306cdcc4af4f595b1cfff49d (diff) |
Revert "Improve test coverage"
This reverts commit 1da764ea
Issue-ID: SDC-3540
Change-Id: I54b65e1d5323dcc680c5bb65fa1657b7adb6741d
Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
Diffstat (limited to 'common-be/src/test/java')
-rw-r--r-- | common-be/src/test/java/org/openecomp/sdc/be/datatypes/elements/ProductMetadataDataDefinitionTest.java | 103 |
1 files changed, 103 insertions, 0 deletions
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<String> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getContacts(); + } + + + @Test + public void testSetContacts() throws Exception { + ProductMetadataDataDefinition testSubject; + List<String> 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; |