Change to enable SDC list type input
[sdc.git] / catalog-model / src / test / java / org / openecomp / sdc / be / model / ComponentParametersViewTest.java
index d84b821..7f8ea51 100644 (file)
@@ -7,6 +7,8 @@ import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
 
 import java.util.LinkedList;
 
+import static org.junit.Assert.assertSame;
+
 public class ComponentParametersViewTest {
 
        private ComponentParametersView createTestSubject() {
@@ -448,6 +450,26 @@ public class ComponentParametersViewTest {
        }
 
        
+       @Test
+       public void testIsIgnoreNodeFilterWithTrue() throws Exception {
+               ComponentParametersView testSubject;
+
+               testSubject = createTestSubject();
+               testSubject.setIgnoreNodeFilter(true);
+               assertSame(testSubject.isIgnoreNodeFilter(), true);
+       }
+
+       
+       @Test
+       public void testIsIgnoreNodeFilterWithFalse() throws Exception {
+               ComponentParametersView testSubject;
+
+               testSubject = createTestSubject();
+               testSubject.setIgnoreNodeFilter(false);
+               assertSame(testSubject.isIgnoreNodeFilter(), false);
+       }
+
+
        @Test
        public void testDetectParseFlag() throws Exception {
                ComponentParametersView testSubject;
@@ -457,4 +479,4 @@ public class ComponentParametersViewTest {
                testSubject = createTestSubject();
                result = testSubject.detectParseFlag();
        }
-}
\ No newline at end of file
+}