From 6895f4d2004cf3ccb94d9d7bbb0928db50dae39a Mon Sep 17 00:00:00 2001 From: isaac Date: Thu, 12 Jan 2023 09:12:01 -0600 Subject: Updating tests to account for Drools upgrade Issue-ID: POLICY-4498 Signed-off-by: isaac Signed-off-by: jhh Change-Id: I8e0fcb2905bbc9f8254ec8af6044b5b5a720f65a --- .../drools/apps/controller/usecases/UsecasesEventManagerTest.java | 6 +++--- .../controlloop/eventmanager/ClEventManagerWithEventTest.java | 6 +++--- .../controlloop/eventmanager/ClEventManagerWithOutcomeTest.java | 6 +++--- .../controlloop/eventmanager/ClEventManagerWithStepsTest.java | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/controlloop/common/controller-usecases/src/test/java/org/onap/policy/drools/apps/controller/usecases/UsecasesEventManagerTest.java b/controlloop/common/controller-usecases/src/test/java/org/onap/policy/drools/apps/controller/usecases/UsecasesEventManagerTest.java index 434939d5d..07d168a05 100644 --- a/controlloop/common/controller-usecases/src/test/java/org/onap/policy/drools/apps/controller/usecases/UsecasesEventManagerTest.java +++ b/controlloop/common/controller-usecases/src/test/java/org/onap/policy/drools/apps/controller/usecases/UsecasesEventManagerTest.java @@ -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 diff --git a/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ClEventManagerWithEventTest.java b/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ClEventManagerWithEventTest.java index 759ec90b1..ad01fee78 100644 --- a/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ClEventManagerWithEventTest.java +++ b/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ClEventManagerWithEventTest.java @@ -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 diff --git a/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ClEventManagerWithOutcomeTest.java b/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ClEventManagerWithOutcomeTest.java index ba293c1b5..7534635d1 100644 --- a/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ClEventManagerWithOutcomeTest.java +++ b/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ClEventManagerWithOutcomeTest.java @@ -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 diff --git a/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ClEventManagerWithStepsTest.java b/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ClEventManagerWithStepsTest.java index 3a22d0cf5..76e8167f4 100644 --- a/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ClEventManagerWithStepsTest.java +++ b/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ClEventManagerWithStepsTest.java @@ -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 -- cgit 1.2.3-korg