Reduce technical debt and add JUnit
[policy/engine.git] / PolicyEngineAPI / src / test / java / org / onap / policy / test / PolicyConfigTypeTest.java
index e5e0b54..2d838aa 100644 (file)
@@ -48,8 +48,14 @@ public class PolicyConfigTypeTest {
 
                // add additional test code here
                assertEquals("BRMS_Param", result);
+               
+               assertEquals(PolicyConfigType.MicroService, PolicyConfigType.create(PolicyConfigType.MicroService.name()));
        }
 
+       @Test(expected = IllegalArgumentException.class)
+       public void testException() {
+               PolicyConfigType.create("foobar");
+       }
        /**
         * Perform pre-test initialization.
         *