aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/model/MiscFormatterTest.java
blob: 8e013c0bcb10428f0e172ec51c705b0e9603859d (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 MiscFormatterTest {

    @Test
    public void testToString() throws Exception {

        Position position = new Position();
        position.set("a", "1");
        position.set("b", "2");
        position.set("a", "3");

        assertEquals("<info><a>3</a><b>2</b></info>", position.getOther());
        
    }

}