Consolidate PolicyRestAdapter setup
[policy/engine.git] / ONAP-PAP-REST / src / test / java / org / onap / policy / pap / xacml / rest / adapters / UpdateObjectDataTest.java
index 2c1bc1c..00649c5 100644 (file)
@@ -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()));
+    }
+
 }