diff options
Diffstat (limited to 'PolicyEngineAPI/src/test/java/org/onap/policy/test/AttributeTypeTest.java')
-rw-r--r-- | PolicyEngineAPI/src/test/java/org/onap/policy/test/AttributeTypeTest.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/PolicyEngineAPI/src/test/java/org/onap/policy/test/AttributeTypeTest.java b/PolicyEngineAPI/src/test/java/org/onap/policy/test/AttributeTypeTest.java index 62c447fae..d817deff3 100644 --- a/PolicyEngineAPI/src/test/java/org/onap/policy/test/AttributeTypeTest.java +++ b/PolicyEngineAPI/src/test/java/org/onap/policy/test/AttributeTypeTest.java @@ -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"); } /** |