From 982c8b46646ddda10465fbf29a1b44d281249156 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Thu, 14 Jun 2012 15:55:33 +0200 Subject: [PATCH] fix test to work with new noramalization --- .../index/mapper/geopoint/LatLonMappingGeoPointTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/elasticsearch/test/unit/index/mapper/geopoint/LatLonMappingGeoPointTests.java b/src/test/java/org/elasticsearch/test/unit/index/mapper/geopoint/LatLonMappingGeoPointTests.java index 05a819d14af..b14dc6298c9 100644 --- a/src/test/java/org/elasticsearch/test/unit/index/mapper/geopoint/LatLonMappingGeoPointTests.java +++ b/src/test/java/org/elasticsearch/test/unit/index/mapper/geopoint/LatLonMappingGeoPointTests.java @@ -23,9 +23,9 @@ import org.elasticsearch.ElasticSearchIllegalArgumentException; import org.elasticsearch.common.Numbers; import org.elasticsearch.common.xcontent.XContentFactory; import org.elasticsearch.index.mapper.DocumentMapper; -import org.elasticsearch.test.unit.index.mapper.MapperTests; import org.elasticsearch.index.mapper.ParsedDocument; import org.elasticsearch.index.search.geo.GeoHashUtils; +import org.elasticsearch.test.unit.index.mapper.MapperTests; import org.testng.annotations.Test; import static org.hamcrest.MatcherAssert.assertThat; @@ -51,7 +51,7 @@ public class LatLonMappingGeoPointTests { .endObject() .copiedBytes()); - assertThat(doc.rootDoc().get("point"), equalTo("-89.0,-179.0")); + assertThat(doc.rootDoc().get("point"), equalTo("89.0,1.0")); doc = defaultMapper.parse("type", "1", XContentFactory.jsonBuilder() .startObject() @@ -59,7 +59,7 @@ public class LatLonMappingGeoPointTests { .endObject() .copiedBytes()); - assertThat(doc.rootDoc().get("point"), equalTo("89.0,179.0")); + assertThat(doc.rootDoc().get("point"), equalTo("-89.0,-1.0")); doc = defaultMapper.parse("type", "1", XContentFactory.jsonBuilder() .startObject() @@ -67,7 +67,7 @@ public class LatLonMappingGeoPointTests { .endObject() .copiedBytes()); - assertThat(doc.rootDoc().get("point"), equalTo("1.0,1.0")); + assertThat(doc.rootDoc().get("point"), equalTo("-1.0,-179.0")); } @Test