aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/events
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-01-26 10:31:35 +0500
committerAbyss777 <abyss@fox5.ru>2017-01-26 10:31:35 +0500
commitd0cb885b152d5db3913936c8f1b57e690a47a067 (patch)
tree2d9ed07ff32b00b330029b187c96b9768f034fef /test/org/traccar/events
parent6ab8d0aaa66f0ea0b4533db47123dc3c8e8ec5b8 (diff)
downloadtraccar-server-d0cb885b152d5db3913936c8f1b57e690a47a067.tar.gz
traccar-server-d0cb885b152d5db3913936c8f1b57e690a47a067.tar.bz2
traccar-server-d0cb885b152d5db3913936c8f1b57e690a47a067.zip
Fix ignition test
Diffstat (limited to 'test/org/traccar/events')
-rw-r--r--test/org/traccar/events/IgnitionEventHandlerTest.java5
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);
}
}