File tree 1 file changed +6
-4
lines changed
src/test/java/org/elasticsearch/index/mapper/geo
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 29
29
30
30
import java .util .Map ;
31
31
32
+ import static org .elasticsearch .test .hamcrest .ElasticsearchAssertions .assertAcked ;
33
+
32
34
public class GeoMappingTests extends ElasticsearchIntegrationTest {
33
35
34
36
public void testUpdatePrecision () throws Exception {
35
- prepareCreate ("test" ).addMapping ("type1" , XContentFactory .jsonBuilder ().startObject ()
37
+ assertAcked ( prepareCreate ("test" ).addMapping ("type1" , XContentFactory .jsonBuilder ().startObject ()
36
38
.startObject ("type1" )
37
39
.startObject ("properties" )
38
40
.startObject ("pin" )
@@ -44,11 +46,11 @@ public void testUpdatePrecision() throws Exception {
44
46
.endObject ()
45
47
.endObject ()
46
48
.endObject ()
47
- .endObject ()).execute (). actionGet ( );
49
+ .endObject ()).get () );
48
50
ensureYellow ();
49
51
assertPrecision (new Distance (2 , DistanceUnit .MILLIMETERS ));
50
52
51
- client ().admin ().indices ().preparePutMapping ("test" ).setType ("type1" ).setSource (XContentFactory .jsonBuilder ().startObject ()
53
+ assertAcked ( client ().admin ().indices ().preparePutMapping ("test" ).setType ("type1" ).setSource (XContentFactory .jsonBuilder ().startObject ()
52
54
.startObject ("type1" )
53
55
.startObject ("properties" )
54
56
.startObject ("pin" )
@@ -60,7 +62,7 @@ public void testUpdatePrecision() throws Exception {
60
62
.endObject ()
61
63
.endObject ()
62
64
.endObject ()
63
- .endObject ()).execute (). actionGet ( );
65
+ .endObject ()).get () );
64
66
65
67
assertPrecision (new Distance (11 , DistanceUnit .METERS ));
66
68
}
You can’t perform that action at this time.
0 commit comments