Reduce technical debt and add JUnit
[policy/engine.git] / PolicyEngineAPI / src / test / java / org / onap / policy / test / AttributeTypeTest.java
index 62c447f..d817def 100644 (file)
@@ -48,6 +48,15 @@ public class AttributeTypeTest {
 
                // add additional test code here
                assertEquals("matching", result);
+               
+               AttributeType type = AttributeType.create("dictionary");
+               assertEquals(AttributeType.DICTIONARY, type);
+               
+       }
+       
+       @Test(expected = IllegalArgumentException.class)
+       public void testException() {
+               AttributeType.create("foobar");
        }
 
        /**