X-Git-Url: https://gerrit.onap.org/r/gitweb?p=policy%2Fengine.git;a=blobdiff_plain;f=ONAP-PAP-REST%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fpolicy%2Fpap%2Fxacml%2Frest%2Fadapters%2FUpdateObjectDataTest.java;h=00649c5e271d052b6df1240dd4aa75ecf7d4238b;hp=2c1bc1c53bad59cc3d8a01c2a6c37b211b299f6f;hb=1e61676b77dd09659027b8984f050df7e8538526;hpb=07450cf3a2fa5ac2049d7b287567eb2641dfb5f7 diff --git a/ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/adapters/UpdateObjectDataTest.java b/ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/adapters/UpdateObjectDataTest.java index 2c1bc1c53..00649c5e2 100644 --- a/ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/adapters/UpdateObjectDataTest.java +++ b/ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/adapters/UpdateObjectDataTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP Policy Engine * ================================================================================ - * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2018-2019 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ * limitations under the License. * ============LICENSE_END========================================================= */ + package org.onap.policy.pap.xacml.rest.adapters; import static org.junit.Assert.assertTrue; @@ -24,16 +25,16 @@ import static org.junit.Assert.assertTrue; import org.junit.Test; public class UpdateObjectDataTest { - - @Test - public void testClosedLoopFaultTrapDatas(){ - UpdateObjectData updateObject = new UpdateObjectData(); - updateObject.setAction("Rename"); - assertTrue("Rename".equals(updateObject.getAction())); - updateObject.setNewPolicyName("com.Config_test1.1.json"); - assertTrue("com.Config_test1.1.json".equals(updateObject.getNewPolicyName())); - updateObject.setOldPolicyName("com.Config_test.1.json"); - assertTrue("com.Config_test.1.json".equals(updateObject.getOldPolicyName())); - } - + + @Test + public void testClosedLoopFaultTrapDatas() { + UpdateObjectData updateObject = new UpdateObjectData(); + updateObject.setAction("Rename"); + assertTrue("Rename".equals(updateObject.getAction())); + updateObject.setNewPolicyName("com.Config_test1.1.json"); + assertTrue("com.Config_test1.1.json".equals(updateObject.getNewPolicyName())); + updateObject.setOldPolicyName("com.Config_test.1.json"); + assertTrue("com.Config_test.1.json".equals(updateObject.getOldPolicyName())); + } + }