diff options
author | Jim Hahn <jrh3@att.com> | 2020-01-10 10:32:17 -0500 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2020-01-10 11:12:58 -0500 |
commit | e9c14cfca7af2ec822a6c88724c055fbd716152f (patch) | |
tree | 632ae39d2ebda838aa5f55747bcbf51c3cd2e2d9 /feature-lifecycle/src/test/java/org | |
parent | f5cd84316856905a3206f715de958c875fef98d0 (diff) |
Prepare drools-pdp for java 11
The Observer class has been deprecated. Changed the code to use
StateChangeNotifier, instead, in anticipation of a corresponding
change in policy/common.
Also fixed new issue with missing getSupportedPolicyTypes() method.
Issue-ID: POLICY-1406
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I2d3ee29f13bd12a2e16644a1746f066c91c05475
Diffstat (limited to 'feature-lifecycle/src/test/java/org')
-rw-r--r-- | feature-lifecycle/src/test/java/org/onap/policy/drools/lifecycle/LifecycleStateRunningTest.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/feature-lifecycle/src/test/java/org/onap/policy/drools/lifecycle/LifecycleStateRunningTest.java b/feature-lifecycle/src/test/java/org/onap/policy/drools/lifecycle/LifecycleStateRunningTest.java index fe3566db..06fd08ca 100644 --- a/feature-lifecycle/src/test/java/org/onap/policy/drools/lifecycle/LifecycleStateRunningTest.java +++ b/feature-lifecycle/src/test/java/org/onap/policy/drools/lifecycle/LifecycleStateRunningTest.java @@ -98,10 +98,6 @@ public abstract class LifecycleStateRunningTest { String[] events = fsm.client.getSink().getRecentEvents(); PdpStatus status = new StandardCoder().decode(events[events.length - 1], PdpStatus.class); - if (status.getSupportedPolicyTypes() != null) { - return false; - } - return status.getMessageName() == PdpMessageType.PDP_STATUS && state == status.getState(); }; } |