diff options
-rw-r--r-- | engine-d/src/test/java/org/onap/holmes/engine/manager/DroolsEngineTest.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/engine-d/src/test/java/org/onap/holmes/engine/manager/DroolsEngineTest.java b/engine-d/src/test/java/org/onap/holmes/engine/manager/DroolsEngineTest.java index 885b5e4..b57fa30 100644 --- a/engine-d/src/test/java/org/onap/holmes/engine/manager/DroolsEngineTest.java +++ b/engine-d/src/test/java/org/onap/holmes/engine/manager/DroolsEngineTest.java @@ -166,17 +166,19 @@ public class DroolsEngineTest { }
@Test
- public void putRaisedIntoStream_facthandle_is_null() {
+ public void putRaisedIntoStream_facthandle_is_not_null() {
VesAlarm raiseAlarm = new VesAlarm();
- raiseAlarm.setVersion((long) 245235);
+ raiseAlarm.setSourceId("11111");
+ raiseAlarm.setEventName("alarm");
droolsEngine.putRaisedIntoStream(raiseAlarm);
droolsEngine.putRaisedIntoStream(raiseAlarm);
}
@Test
- public void putRaisedIntoStream_factHandle_is_not_null() {
+ public void putRaisedIntoStream_factHandle_is_null() {
VesAlarm raiseAlarm = new VesAlarm();
- raiseAlarm.setVersion((long) 245235);
+ raiseAlarm.setSourceId("11111");
+ raiseAlarm.setEventName("alarm");
droolsEngine.putRaisedIntoStream(raiseAlarm);
}
|