diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-15 11:51:45 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-15 11:51:45 +1200 |
commit | 5cf1061cfcc5baf214bce145961512fd4f672621 (patch) | |
tree | 32efac22ba11abddec21656685c3e0ba730b1e47 /test | |
parent | 34a70e81ecb613c3216fcdd581a9724216137b41 (diff) | |
download | trackermap-server-5cf1061cfcc5baf214bce145961512fd4f672621.tar.gz trackermap-server-5cf1061cfcc5baf214bce145961512fd4f672621.tar.bz2 trackermap-server-5cf1061cfcc5baf214bce145961512fd4f672621.zip |
Rename other field to attributes
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/DistanceHandlerTest.java | 2 | ||||
-rw-r--r-- | test/org/traccar/helper/DecoderVerifier.java | 2 | ||||
-rw-r--r-- | test/org/traccar/model/MiscFormatterTest.java | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/org/traccar/DistanceHandlerTest.java b/test/org/traccar/DistanceHandlerTest.java index 8afeb83f0..e58d9c772 100644 --- a/test/org/traccar/DistanceHandlerTest.java +++ b/test/org/traccar/DistanceHandlerTest.java @@ -15,7 +15,7 @@ public class DistanceHandlerTest { Position position = distanceHandler.calculateDistance(new Position()); - assertEquals(0.0, position.getOther().get(Event.KEY_DISTANCE)); + assertEquals(0.0, position.getAttributes().get(Event.KEY_DISTANCE)); } diff --git a/test/org/traccar/helper/DecoderVerifier.java b/test/org/traccar/helper/DecoderVerifier.java index 63e42cf38..4b6272185 100644 --- a/test/org/traccar/helper/DecoderVerifier.java +++ b/test/org/traccar/helper/DecoderVerifier.java @@ -38,7 +38,7 @@ public class DecoderVerifier { assertTrue(position.getCourse() >= 0); assertTrue(position.getCourse() <= 360); - assertNotNull(position.getOther()); + assertNotNull(position.getAttributes()); } diff --git a/test/org/traccar/model/MiscFormatterTest.java b/test/org/traccar/model/MiscFormatterTest.java index 6a7a05d3b..eb93d5b38 100644 --- a/test/org/traccar/model/MiscFormatterTest.java +++ b/test/org/traccar/model/MiscFormatterTest.java @@ -13,7 +13,7 @@ public class MiscFormatterTest { position.set("b", "2"); position.set("a", "3"); - assertEquals("<info><a>3</a><b>2</b></info>", MiscFormatter.toXmlString(position.getOther())); + assertEquals("<info><a>3</a><b>2</b></info>", MiscFormatter.toXmlString(position.getAttributes())); } |