diff options
Diffstat (limited to 'catalog-model/src/test/java/org/openecomp/sdc/be/model/PolicyDefinitionTest.java')
-rw-r--r-- | catalog-model/src/test/java/org/openecomp/sdc/be/model/PolicyDefinitionTest.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/PolicyDefinitionTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/PolicyDefinitionTest.java new file mode 100644 index 0000000000..c7a21b844a --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/PolicyDefinitionTest.java @@ -0,0 +1,33 @@ +package org.openecomp.sdc.be.model; + +import java.util.HashMap; +import java.util.LinkedList; + +import org.junit.Test; +import org.openecomp.sdc.be.datatypes.elements.PolicyDataDefinition; + +public class PolicyDefinitionTest { + + private PolicyDefinition createTestSubject() { + return new PolicyDefinition(); + } + + @Test + public void testCtor() throws Exception { + new PolicyDefinition(new HashMap<>()); + new PolicyDefinition(new PolicyDataDefinition()); + PolicyTypeDefinition policyType = new PolicyTypeDefinition(); + policyType.setProperties(new LinkedList<>()); + new PolicyDefinition(policyType); + } + + @Test + public void testGetNormalizedName() throws Exception { + PolicyDefinition testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNormalizedName(); + } +}
\ No newline at end of file |