diff options
author | Shiwei Tian <tian.shiwei@zte.com.cn> | 2017-10-26 09:38:40 +0800 |
---|---|---|
committer | Shiwei Tian <tian.shiwei@zte.com.cn> | 2017-10-26 09:38:40 +0800 |
commit | bc90ee84d4511acab2b9be5c9a08776d54f8ece5 (patch) | |
tree | 93835a2a31132376fad4f37ebc9e19aeb588c4a8 /engine-d/src | |
parent | 517b9b3e72b78e5bd537b0abe7d348fd1d642080 (diff) |
modify test bug
Issue-ID: HOLMES-71
Change-Id: Id22f30ab3247ad69f6e92e154b8377022b12b53a
Signed-off-by: Shiwei Tian <tian.shiwei@zte.com.cn>
Diffstat (limited to 'engine-d/src')
-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);
}
|