aboutsummaryrefslogtreecommitdiff
path: root/test/net/sourceforge/opentracking/protocol/tk103
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2011-11-11 12:18:08 +0000
committerAnton Tananaev <anton.tananaev@gmail.com>2011-11-11 12:18:08 +0000
commita88479f670fea8f6c7f5fdf13c7dffa67772d854 (patch)
tree3d9557e949a0002ed7ef186163cf270c7502a71e /test/net/sourceforge/opentracking/protocol/tk103
parent139177767ab256033a5c3b71ea84b92c1dcbe504 (diff)
downloadtrackermap-server-a88479f670fea8f6c7f5fdf13c7dffa67772d854.tar.gz
trackermap-server-a88479f670fea8f6c7f5fdf13c7dffa67772d854.tar.bz2
trackermap-server-a88479f670fea8f6c7f5fdf13c7dffa67772d854.zip
Diffstat (limited to 'test/net/sourceforge/opentracking/protocol/tk103')
-rw-r--r--test/net/sourceforge/opentracking/protocol/tk103/Tk103ProtocolDecoderTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/net/sourceforge/opentracking/protocol/tk103/Tk103ProtocolDecoderTest.java b/test/net/sourceforge/opentracking/protocol/tk103/Tk103ProtocolDecoderTest.java
index e318fe5fb..ba4a97e14 100644
--- a/test/net/sourceforge/opentracking/protocol/tk103/Tk103ProtocolDecoderTest.java
+++ b/test/net/sourceforge/opentracking/protocol/tk103/Tk103ProtocolDecoderTest.java
@@ -30,12 +30,12 @@ public class Tk103ProtocolDecoderTest {
@Test
public void testDecode() throws Exception {
-
- String testMsg1 = "(035988863964BP05000035988863964110524A4241.7977N02318.7561E000.0123536356.5100000000L000946BB";
+
Tk103ProtocolDecoder decoder = new Tk103ProtocolDecoder(new TestDataManager(), 0);
- Position position = (Position) decoder.decode(null, null, testMsg1);
+
+ assertNotNull(decoder.decode(null, null,
+ "(035988863964BP05000035988863964110524A4241.7977N02318.7561E000.0123536356.5100000000L000946BB"));
- assertEquals(true, position.getValid());
}
}