aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/geofence/GeofencePolygonTest.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-06-14 18:05:05 +0500
committerAbyss777 <abyss@fox5.ru>2016-06-14 18:05:05 +0500
commitb588b3c723cad4629dcecbce8983933f7ff2a255 (patch)
treeee1ed23c7c02ded8ca92c904e6f4f21aacfda8d8 /test/org/traccar/geofence/GeofencePolygonTest.java
parent185c0830e17b6969977026d4be27e34878bb3db9 (diff)
downloadtrackermap-server-b588b3c723cad4629dcecbce8983933f7ff2a255.tar.gz
trackermap-server-b588b3c723cad4629dcecbce8983933f7ff2a255.tar.bz2
trackermap-server-b588b3c723cad4629dcecbce8983933f7ff2a255.zip
- Overlapping geofences
- Simplified user-device link
Diffstat (limited to 'test/org/traccar/geofence/GeofencePolygonTest.java')
-rw-r--r--test/org/traccar/geofence/GeofencePolygonTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/org/traccar/geofence/GeofencePolygonTest.java b/test/org/traccar/geofence/GeofencePolygonTest.java
index cc0ed77ad..8711a3696 100644
--- a/test/org/traccar/geofence/GeofencePolygonTest.java
+++ b/test/org/traccar/geofence/GeofencePolygonTest.java
@@ -12,11 +12,11 @@ public class GeofencePolygonTest {
String test = "POLYGON (55.75474 37.61823, 55.75513 37.61888, 55.7535 37.6222, 55.75315 37.62165)";
GeofenceGeometry geofenceGeometry = new GeofencePolygon();
try {
- geofenceGeometry.fromWKT(test);
+ geofenceGeometry.fromWkt(test);
} catch (ParseException e){
Assert.assertTrue("ParseExceprion: " + e.getMessage(), true);
}
- Assert.assertEquals(geofenceGeometry.toWKT(), test);
+ Assert.assertEquals(geofenceGeometry.toWkt(), test);
}
@Test
@@ -24,7 +24,7 @@ public class GeofencePolygonTest {
String test = "POLYGON (55.75474 37.61823, 55.75513 37.61888, 55.7535 37.6222, 55.75315 37.62165)";
GeofenceGeometry geofenceGeometry = new GeofencePolygon();
try {
- geofenceGeometry.fromWKT(test);
+ geofenceGeometry.fromWkt(test);
} catch (ParseException e){
Assert.assertTrue("ParseExceprion: " + e.getMessage(), true);
}