Merge "Drools-App changes to support CQ"
authorJorge Hernandez <jorge.hernandez-herrero@att.com>
Thu, 11 Apr 2019 17:48:54 +0000 (17:48 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 11 Apr 2019 17:48:54 +0000 (17:48 +0000)
1  2 
controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopOperationManager.java
controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ControlLoopOperationManagerTest.java

@@@ -131,9 -131,9 +131,9 @@@ public class ControlLoopOperationManage
          } catch (Exception e) {
              fail(e.getMessage());
          }
-         
          // Set PU
 -        System.setProperty("OperationsHistoryPU", "TestOperationsHistoryPU");
 +        System.setProperty("OperationsHistoryPU", "OperationsHistoryPUTest");
  
          // Enter dummy props to avoid nullPointerException
          PolicyEngine.manager.setEnvironmentProperty(org.onap.policy.guard.Util.ONAP_KEY_URL, "a");
  
          assertEquals(PolicyResult.FAILURE, clom.onResponse(soRw));
  
 -        System.setProperty("OperationsHistoryPU", "TestOperationsHistoryPU");
 +        System.setProperty("OperationsHistoryPU", "OperationsHistoryPUTest");
          assertEquals(PolicyResult.FAILURE, clom.onResponse(soRw));
-     }    
+     }
  
      @Test
      public void testCommitAbatement() throws ControlLoopException, AaiException, IOException {
          assertFalse(clom.isOperationRunning());
          assertEquals(1, clom.getHistory().size());
  
 -        System.setProperty("OperationsHistoryPU", "TestOperationsHistoryPU");
 +        System.setProperty("OperationsHistoryPU", "OperationsHistoryPUTest");
          assertEquals(PolicyResult.FAILURE, clom.onResponse(soRw));
-         
          clom = Serializer.roundTrip(clom);
          assertNotNull(clom);
          assertFalse(clom.isOperationRunning());