aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-04-29 13:41:15 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-04-29 13:41:15 +1200
commitf7198adaf371e08a72a837d417b29531c117c6ba (patch)
tree853fb51b64cd00aaa6e53d4e510bbf69859e7765 /test
parentcb0a3831c2d89a22e9f3b68d3ee17f6e2abdd424 (diff)
downloadtrackermap-server-f7198adaf371e08a72a837d417b29531c117c6ba.tar.gz
trackermap-server-f7198adaf371e08a72a837d417b29531c117c6ba.tar.bz2
trackermap-server-f7198adaf371e08a72a837d417b29531c117c6ba.zip
Store other data in position
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/helper/DecoderVerifier.java2
-rw-r--r--test/org/traccar/model/ExtendedInfoFormatterTest.java12
2 files changed, 7 insertions, 7 deletions
diff --git a/test/org/traccar/helper/DecoderVerifier.java b/test/org/traccar/helper/DecoderVerifier.java
index f815861f5..53d7ed28b 100644
--- a/test/org/traccar/helper/DecoderVerifier.java
+++ b/test/org/traccar/helper/DecoderVerifier.java
@@ -37,7 +37,7 @@ public class DecoderVerifier {
assertTrue(position.getCourse() >= 0);
assertTrue(position.getCourse() <= 360);
- assertNotNull(position.getExtendedInfo());
+ assertNotNull(position.getOther());
}
diff --git a/test/org/traccar/model/ExtendedInfoFormatterTest.java b/test/org/traccar/model/ExtendedInfoFormatterTest.java
index 31161e9e7..9c8c86b4e 100644
--- a/test/org/traccar/model/ExtendedInfoFormatterTest.java
+++ b/test/org/traccar/model/ExtendedInfoFormatterTest.java
@@ -7,13 +7,13 @@ public class ExtendedInfoFormatterTest {
@Test
public void testToString() throws Exception {
+
+ Position position = new Position();
+ position.set("a", "1");
+ position.set("b", "2");
+ position.set("a", "3");
- ExtendedInfoFormatter extendedInfo = new ExtendedInfoFormatter("test");
- extendedInfo.set("a", "1");
- extendedInfo.set("b", "2");
- extendedInfo.set("a", "3");
-
- assertEquals(extendedInfo.toString(), "<info><protocol>test</protocol><a>3</a><b>2</b></info>");
+ assertEquals(position.getOther(), "<info><a>3</a><b>2</b></info>");
}