diff options
Diffstat (limited to 'feature-lifecycle/src/test/java/org')
-rw-r--r-- | feature-lifecycle/src/test/java/org/onap/policy/drools/lifecycle/LifecycleStateUnsupportedTest.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/feature-lifecycle/src/test/java/org/onap/policy/drools/lifecycle/LifecycleStateUnsupportedTest.java b/feature-lifecycle/src/test/java/org/onap/policy/drools/lifecycle/LifecycleStateUnsupportedTest.java index 1b7c62a3..400aa169 100644 --- a/feature-lifecycle/src/test/java/org/onap/policy/drools/lifecycle/LifecycleStateUnsupportedTest.java +++ b/feature-lifecycle/src/test/java/org/onap/policy/drools/lifecycle/LifecycleStateUnsupportedTest.java @@ -90,19 +90,22 @@ public abstract class LifecycleStateUnsupportedTest { @Test public void update() { - assertThatThrownBy(() -> state.update(new PdpUpdate())) + PdpUpdate update = new PdpUpdate(); + assertThatThrownBy(() -> state.update(update)) .isInstanceOf(UnsupportedOperationException.class); } @Test public void stateChange() { - assertThatThrownBy(() -> state.stateChange(new PdpStateChange())) + PdpStateChange change = new PdpStateChange(); + assertThatThrownBy(() -> state.stateChange(change)) .isInstanceOf(UnsupportedOperationException.class); } @Test public void changeState() { - assertThatThrownBy(() -> state.transitionToState(new LifecycleStateActive(new LifecycleFsm()))) + LifecycleStateActive active = new LifecycleStateActive(new LifecycleFsm()); + assertThatThrownBy(() -> state.transitionToState(active)) .isInstanceOf(UnsupportedOperationException.class); } } |