From 53486c0fe1bad6adb2324bd596e7528dcec82d26 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 2 Aug 2014 10:28:25 +0200 Subject: Improve extended formatter --- .../org/traccar/model/ExtendedInfoFormatterTest.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/org/traccar/model/ExtendedInfoFormatterTest.java (limited to 'test/org') diff --git a/test/org/traccar/model/ExtendedInfoFormatterTest.java b/test/org/traccar/model/ExtendedInfoFormatterTest.java new file mode 100644 index 000000000..31161e9e7 --- /dev/null +++ b/test/org/traccar/model/ExtendedInfoFormatterTest.java @@ -0,0 +1,20 @@ +package org.traccar.model; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; + +public class ExtendedInfoFormatterTest { + + @Test + public void testToString() throws Exception { + + ExtendedInfoFormatter extendedInfo = new ExtendedInfoFormatter("test"); + extendedInfo.set("a", "1"); + extendedInfo.set("b", "2"); + extendedInfo.set("a", "3"); + + assertEquals(extendedInfo.toString(), "test32"); + + } + +} -- cgit v1.2.3