diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/helper/DecoderVerifier.java | 2 | ||||
-rw-r--r-- | test/org/traccar/model/ExtendedInfoFormatterTest.java | 12 |
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>"); } |