diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-26 21:19:55 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-26 21:19:55 +1300 |
commit | 3155b8697a9b3f8023e085a766a439eee4c058db (patch) | |
tree | 2d9ed07ff32b00b330029b187c96b9768f034fef /test/org/traccar/events/IgnitionEventHandlerTest.java | |
parent | b1453ebd231009e9d9078377f2a1e063d852c444 (diff) | |
parent | d0cb885b152d5db3913936c8f1b57e690a47a067 (diff) | |
download | trackermap-server-3155b8697a9b3f8023e085a766a439eee4c058db.tar.gz trackermap-server-3155b8697a9b3f8023e085a766a439eee4c058db.tar.bz2 trackermap-server-3155b8697a9b3f8023e085a766a439eee4c058db.zip |
Merge pull request #2833 from Abyss777/fix_ignition
Rise ignition events only if both positions has ignition attribute
Diffstat (limited to 'test/org/traccar/events/IgnitionEventHandlerTest.java')
-rw-r--r-- | test/org/traccar/events/IgnitionEventHandlerTest.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/org/traccar/events/IgnitionEventHandlerTest.java b/test/org/traccar/events/IgnitionEventHandlerTest.java index ad329d139..d6c348c77 100644 --- a/test/org/traccar/events/IgnitionEventHandlerTest.java +++ b/test/org/traccar/events/IgnitionEventHandlerTest.java @@ -1,7 +1,6 @@ package org.traccar.events; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; import java.util.Collection; @@ -21,9 +20,7 @@ public class IgnitionEventHandlerTest extends BaseTest { position.set(Position.KEY_IGNITION, true); position.setValid(true); Collection<Event> events = ignitionEventHandler.analyzePosition(position); - assertNotNull(events); - Event event = (Event) events.toArray()[0]; - assertEquals(Event.TYPE_IGNITION_ON, event.getType()); + assertEquals(events, null); } } |