From 7aab928fca7907f6204c8119acc0defaff750147 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 12 Jul 2015 11:26:54 +1200 Subject: Add Intellitrac unit test case --- test/org/traccar/protocol/IntellitracProtocolDecoderTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/org') diff --git a/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java b/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java index 59fcd7dab..d4f88e42d 100644 --- a/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java +++ b/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java @@ -1,9 +1,8 @@ package org.traccar.protocol; -import org.traccar.helper.TestIdentityManager; -import static org.traccar.helper.DecoderVerifier.verify; import static org.junit.Assert.assertNull; import org.junit.Test; +import static org.traccar.helper.DecoderVerifier.verify; public class IntellitracProtocolDecoderTest extends ProtocolDecoderTest { @@ -13,6 +12,9 @@ public class IntellitracProtocolDecoderTest extends ProtocolDecoderTest { IntellitracProtocolDecoder decoder = new IntellitracProtocolDecoder(new IntellitracProtocol()); assertNull(decoder.decode(null, null, "$OK:TRACKING")); + + verify(decoder.decode(null, null, + "101000001,20100304075545,121.64547,25.06200,0,0,61,7,2,1,0,0.046,0.000,20100304075546,0")); verify(decoder.decode(null, null, "1010000002,20030217132813,121.646060,25.061725,20,157,133,7,0,11,15,0.096,0.000")); -- cgit v1.2.3