1 package org.openecomp.vid.model;
3 import org.junit.Assert;
7 public class ModelUtilTest {
9 private ModelUtil createTestSubject() {
10 return new ModelUtil();
15 public void testGetTags() throws Exception {
17 String constantValue = "test";
22 result = ModelUtil.getTags(namespaces, constantValue);
23 Assert.assertNull(result);
26 namespaces = new String[] { "" };
27 result = ModelUtil.getTags(namespaces, constantValue);
28 Assert.assertArrayEquals(new String[] { constantValue }, result);
33 public void testIsType() throws Exception {
40 result = ModelUtil.isType(type, tags);
41 Assert.assertEquals(false, result);
44 tags = new String[] { "a" };
45 result = ModelUtil.isType(type, tags);
46 Assert.assertEquals(true, result);