From f7198adaf371e08a72a837d417b29531c117c6ba Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 29 Apr 2015 13:41:15 +1200 Subject: Store other data in position --- test/org/traccar/model/ExtendedInfoFormatterTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/org/traccar/model') 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(), "test32"); + assertEquals(position.getOther(), "32"); } -- cgit v1.2.3