Updating tests to account for Drools upgrade 10/132910/2
authorisaac <isaac.adorno@att.com>
Thu, 12 Jan 2023 15:12:01 +0000 (09:12 -0600)
committerjhh <jorge.hernandez-herrero@att.com>
Thu, 26 Jan 2023 16:15:02 +0000 (10:15 -0600)
Issue-ID: POLICY-4498
Signed-off-by: isaac <isaac.adorno@att.com>
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I8e0fcb2905bbc9f8254ec8af6044b5b5a720f65a

controlloop/common/controller-usecases/src/test/java/org/onap/policy/drools/apps/controller/usecases/UsecasesEventManagerTest.java
controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ClEventManagerWithEventTest.java
controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ClEventManagerWithOutcomeTest.java
controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ClEventManagerWithStepsTest.java

index 434939d..07d168a 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * ONAP
  * ================================================================================
- * Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2020-2021, 2023 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.
@@ -42,10 +42,10 @@ import java.util.TreeMap;
 import java.util.UUID;
 import java.util.concurrent.ExecutorService;
 import org.drools.core.WorkingMemory;
+import org.drools.core.common.InternalFactHandle;
 import org.junit.Before;
 import org.junit.Test;
 import org.junit.runner.RunWith;
-import org.kie.api.runtime.rule.FactHandle;
 import org.mockito.Mock;
 import org.mockito.junit.MockitoJUnitRunner;
 import org.onap.policy.common.utils.coder.Coder;
@@ -105,7 +105,7 @@ public class UsecasesEventManagerTest {
     @Mock
     private WorkingMemory workMem;
     @Mock
-    private FactHandle factHandle;
+    private InternalFactHandle factHandle;
     @Mock
     private Operator policyOperator;
     @Mock
index 759ec90..ad01fee 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * ONAP
  * ================================================================================
- * Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2021, 2023 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.
@@ -40,10 +40,10 @@ import java.util.UUID;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.atomic.AtomicReference;
 import org.drools.core.WorkingMemory;
+import org.drools.core.common.InternalFactHandle;
 import org.junit.Before;
 import org.junit.Test;
 import org.junit.runner.RunWith;
-import org.kie.api.runtime.rule.FactHandle;
 import org.mockito.Mock;
 import org.mockito.junit.MockitoJUnitRunner;
 import org.onap.policy.common.utils.coder.Coder;
@@ -96,7 +96,7 @@ public class ClEventManagerWithEventTest {
     @Mock
     private WorkingMemory workMem;
     @Mock
-    private FactHandle factHandle;
+    private InternalFactHandle factHandle;
     @Mock
     private Operator policyOperator;
     @Mock
index ba293c1..7534635 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * ONAP
  * ================================================================================
- * Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2021, 2023 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.
@@ -38,10 +38,10 @@ import java.util.UUID;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.atomic.AtomicReference;
 import org.drools.core.WorkingMemory;
+import org.drools.core.common.InternalFactHandle;
 import org.junit.Before;
 import org.junit.Test;
 import org.junit.runner.RunWith;
-import org.kie.api.runtime.rule.FactHandle;
 import org.mockito.Mock;
 import org.mockito.junit.MockitoJUnitRunner;
 import org.onap.policy.common.utils.coder.Coder;
@@ -87,7 +87,7 @@ public class ClEventManagerWithOutcomeTest {
     @Mock
     private WorkingMemory workMem;
     @Mock
-    private FactHandle factHandle;
+    private InternalFactHandle factHandle;
     @Mock
     private Operator policyOperator;
     @Mock
index 3a22d0c..76e8167 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * ONAP
  * ================================================================================
- * Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2021, 2023 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.
@@ -45,10 +45,10 @@ import java.util.concurrent.ExecutorService;
 import java.util.concurrent.ForkJoinPool;
 import java.util.concurrent.atomic.AtomicReference;
 import org.drools.core.WorkingMemory;
+import org.drools.core.common.InternalFactHandle;
 import org.junit.Before;
 import org.junit.Test;
 import org.junit.runner.RunWith;
-import org.kie.api.runtime.rule.FactHandle;
 import org.mockito.Mock;
 import org.mockito.junit.MockitoJUnitRunner;
 import org.onap.policy.common.utils.coder.Coder;
@@ -96,7 +96,7 @@ public class ClEventManagerWithStepsTest {
     @Mock
     private WorkingMemory workMem;
     @Mock
-    private FactHandle factHandle;
+    private InternalFactHandle factHandle;
     @Mock
     private Operator policyOperator;
     @Mock