aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/model
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/org/traccar/model
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/org/traccar/model')
-rw-r--r--test/org/traccar/model/ExtendedInfoFormatterTest.java12
1 files changed, 6 insertions, 6 deletions
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>");
}