new unit tests for sdc-dao
[sdc.git] / catalog-model / src / test / java / org / openecomp / sdc / be / model / ComponentInstancePropertyTest.java
index 4718847..a734722 100644 (file)
@@ -2,9 +2,8 @@ package org.openecomp.sdc.be.model;
 
 import java.util.List;
 
-import javax.annotation.Generated;
-
 import org.junit.Test;
+import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition;
 import org.openecomp.sdc.be.datatypes.elements.PropertyRule;
 
 
@@ -14,6 +13,13 @@ public class ComponentInstancePropertyTest {
                return new ComponentInstanceProperty();
        }
 
+       @Test
+       public void testCtor() throws Exception {
+               new ComponentInstanceProperty(new PropertyDataDefinition());
+               new ComponentInstanceProperty(new PropertyDefinition());
+               new ComponentInstanceProperty(false, new PropertyDefinition(), "mock");
+               new ComponentInstanceProperty(new PropertyDefinition(), "mock", "mock");
+       }
        
        @Test
        public void testGetComponentInstanceName() throws Exception {