aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/model/MiscFormatterTest.java (renamed from test/org/traccar/model/ExtendedInfoFormatterTest.java)5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/org/traccar/model/ExtendedInfoFormatterTest.java b/test/org/traccar/model/MiscFormatterTest.java
index 9c8c86b4e..94241f95c 100644
--- a/test/org/traccar/model/ExtendedInfoFormatterTest.java
+++ b/test/org/traccar/model/MiscFormatterTest.java
@@ -3,7 +3,7 @@ package org.traccar.model;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
-public class ExtendedInfoFormatterTest {
+public class MiscFormatterTest {
@Test
public void testToString() throws Exception {
@@ -12,8 +12,9 @@ public class ExtendedInfoFormatterTest {
position.set("a", "1");
position.set("b", "2");
position.set("a", "3");
+ position.set("c", 3.555);
- assertEquals(position.getOther(), "<info><a>3</a><b>2</b></info>");
+ assertEquals(position.getOther(), "<info><a>3</a><b>2</b><c>3.56</c></info>");
}