diff options
Diffstat (limited to 'controlloop/m2/adapters')
2 files changed, 4 insertions, 6 deletions
diff --git a/controlloop/m2/adapters/src/main/java/org/onap/policy/m2/adapters/VirtualOnsetAdapter.java b/controlloop/m2/adapters/src/main/java/org/onap/policy/m2/adapters/VirtualOnsetAdapter.java index e9ca1164d..1a3a5f66c 100644 --- a/controlloop/m2/adapters/src/main/java/org/onap/policy/m2/adapters/VirtualOnsetAdapter.java +++ b/controlloop/m2/adapters/src/main/java/org/onap/policy/m2/adapters/VirtualOnsetAdapter.java @@ -21,12 +21,10 @@ package org.onap.policy.m2.adapters; import java.io.Serializable; - import org.onap.policy.controlloop.ControlLoopEvent; import org.onap.policy.controlloop.ControlLoopNotification; import org.onap.policy.controlloop.VirtualControlLoopEvent; import org.onap.policy.controlloop.VirtualControlLoopNotification; - import org.onap.policy.m2.base.OnsetAdapter; public class VirtualOnsetAdapter extends OnsetAdapter implements Serializable { @@ -50,7 +48,7 @@ public class VirtualOnsetAdapter extends OnsetAdapter implements Serializable { @Override public ControlLoopNotification createNotification(ControlLoopEvent event) { if (event instanceof VirtualControlLoopEvent) { - return new VirtualControlLoopNotification((VirtualControlLoopEvent)event); + return new VirtualControlLoopNotification((VirtualControlLoopEvent) event); } // Right now, the onset event from the transaction is used to locate diff --git a/controlloop/m2/adapters/src/test/java/org/onap/policy/m2/adapters/VirtualOnsetAdapterTest.java b/controlloop/m2/adapters/src/test/java/org/onap/policy/m2/adapters/VirtualOnsetAdapterTest.java index c19a80e7e..4b38b1e14 100644 --- a/controlloop/m2/adapters/src/test/java/org/onap/policy/m2/adapters/VirtualOnsetAdapterTest.java +++ b/controlloop/m2/adapters/src/test/java/org/onap/policy/m2/adapters/VirtualOnsetAdapterTest.java @@ -22,10 +22,8 @@ package org.onap.policy.m2.adapters; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; import org.junit.Test; - import org.onap.policy.controlloop.ControlLoopEvent; import org.onap.policy.controlloop.ControlLoopNotification; import org.onap.policy.controlloop.VirtualControlLoopEvent; @@ -47,7 +45,9 @@ public class VirtualOnsetAdapterTest { // we want an exact class match, so 'instanceOf' is not being used assertEquals(VirtualControlLoopNotification.class, notification.getClass()); - ControlLoopEvent controlLoopEvent = new ControlLoopEvent() {}; + ControlLoopEvent controlLoopEvent = new ControlLoopEvent() { + private static final long serialVersionUID = 1L; + }; notification = virtualOnsetAdapter.createNotification(controlLoopEvent); assertNotNull(notification); } |