X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ONAP-PDP%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fpolicy%2Fxacml%2Fpdp%2FONAPPDPEngineFactoryTest.java;fp=ONAP-PDP%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fpolicy%2Fpdp%2Ftest%2FPDPTest.java;h=0c9d246154c5a3f062ec34549a046445c4506f9d;hb=e64508463caed53e661e4e02e1de971b21f642a7;hp=6442d7a12ecd94048efeab672610f381f2674855;hpb=65ef62c9c8de81bf21817e6fb968a555dd87ae25;p=policy%2Fengine.git diff --git a/ONAP-PDP/src/test/java/org/onap/policy/pdp/test/PDPTest.java b/ONAP-PDP/src/test/java/org/onap/policy/xacml/pdp/ONAPPDPEngineFactoryTest.java similarity index 58% rename from ONAP-PDP/src/test/java/org/onap/policy/pdp/test/PDPTest.java rename to ONAP-PDP/src/test/java/org/onap/policy/xacml/pdp/ONAPPDPEngineFactoryTest.java index 6442d7a12..0c9d24615 100644 --- a/ONAP-PDP/src/test/java/org/onap/policy/pdp/test/PDPTest.java +++ b/ONAP-PDP/src/test/java/org/onap/policy/xacml/pdp/ONAPPDPEngineFactoryTest.java @@ -17,20 +17,36 @@ * limitations under the License. * ============LICENSE_END========================================================= */ +package org.onap.policy.xacml.pdp; -package org.onap.policy.pdp.test; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; +import java.util.Properties; -import static org.junit.Assert.assertNull; -//import static org.junit.Assert.fail; +import org.junit.Test; -import org.junit.Test; +public class ONAPPDPEngineFactoryTest { -public class PDPTest { - @Test - public void testDummy() { - assertNull(null); + public final void testNewEngine() { + ONAPPDPEngineFactory pdpEngine = new ONAPPDPEngineFactory(); + try{ + assertTrue(pdpEngine.newEngine() != null); + }catch (Exception e) { + fail("operation failed, e="+e); + } + + } + + @Test + public final void testNewEngineProperties() { + ONAPPDPEngineFactory pdpEngine = new ONAPPDPEngineFactory(); + Properties properties = new Properties(); + try{ + assertTrue(pdpEngine.newEngine(properties) != null); + }catch (Exception e) { + fail("operation failed, e="+e); + } } - }