Reduce technical debt and add JUnit
[policy/engine.git] / PolicyEngineAPI / src / test / java / org / onap / policy / test / PolicyTypeTest.java
index 9f1a608..267dd97 100644 (file)
@@ -48,6 +48,13 @@ public class PolicyTypeTest {
 
                // add additional test code here
                assertEquals("json", result);
+               
+               assertEquals(PolicyType.JSON, PolicyType.create("json"));
+       }
+       
+       @Test(expected = IllegalArgumentException.class)
+       public void testException() {
+               PolicyType.create("foobar");
        }
 
        /**