From c55cba60e673ffbff8219588c89012aebffd9625 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 20 Aug 2013 20:33:54 +1200 Subject: Fix Totem unit test --- test/org/traccar/protocol/TotemProtocolDecoderTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/org/traccar/protocol/TotemProtocolDecoderTest.java b/test/org/traccar/protocol/TotemProtocolDecoderTest.java index 9e415592b..8572f1998 100644 --- a/test/org/traccar/protocol/TotemProtocolDecoderTest.java +++ b/test/org/traccar/protocol/TotemProtocolDecoderTest.java @@ -1,6 +1,7 @@ package org.traccar.protocol; import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; import org.junit.Test; public class TotemProtocolDecoderTest { @@ -11,7 +12,7 @@ public class TotemProtocolDecoderTest { TotemProtocolDecoder decoder = new TotemProtocolDecoder(null); decoder.setDataManager(new TestDataManager()); - assertNotNull(decoder.decode(null, null, + assertNull(decoder.decode(null, null, "$$BB862170017856731|AA$GPRMC,000000.00,V,0000.0000,N,00000.0000,E,000.0,000.0,000000,,,A*73|00.0|00.0|00.0|000000001000|20000000000000|13790000|00000000|00000000|00000000|0.0000|0007|8C23")); assertNotNull(decoder.decode(null, null, -- cgit v1.2.3