blob: 31161e9e7b81b130f48007eb61497c5833ad583c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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(), "<info><protocol>test</protocol><a>3</a><b>2</b></info>");
}
}
|