diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-05-07 09:41:50 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-05-07 09:41:50 +1200 |
commit | c4c127d7c116241865ef7e710585ef04ddd60ce8 (patch) | |
tree | 90c368a12c5edb6eac6f84cc146f0a342fedc0ea /test/org/traccar/model/MiscFormatterTest.java | |
parent | 25d58792be50a96096d6a05fad94e5455139c5b8 (diff) | |
download | trackermap-server-c4c127d7c116241865ef7e710585ef04ddd60ce8.tar.gz trackermap-server-c4c127d7c116241865ef7e710585ef04ddd60ce8.tar.bz2 trackermap-server-c4c127d7c116241865ef7e710585ef04ddd60ce8.zip |
Improve double and float format
Diffstat (limited to 'test/org/traccar/model/MiscFormatterTest.java')
-rw-r--r-- | test/org/traccar/model/MiscFormatterTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/org/traccar/model/MiscFormatterTest.java b/test/org/traccar/model/MiscFormatterTest.java new file mode 100644 index 000000000..94241f95c --- /dev/null +++ b/test/org/traccar/model/MiscFormatterTest.java @@ -0,0 +1,21 @@ +package org.traccar.model; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; + +public class MiscFormatterTest { + + @Test + public void testToString() throws Exception { + + Position position = new Position(); + 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><c>3.56</c></info>"); + + } + +} |