@@ -825,7 +825,6 @@ public void createHashIndex() {
825825assertThat (indexResult .getConstraint (), is (nullValue ()));
826826assertThat (indexResult .getFields (), hasItem ("a" ));
827827assertThat (indexResult .getFields (), hasItem ("b" ));
828- assertThat (indexResult .getGeoJson (), is (nullValue ()));
829828assertThat (indexResult .getId (), startsWith (COLLECTION_NAME ));
830829assertThat (indexResult .getIsNewlyCreated (), is (true ));
831830assertThat (indexResult .getMinLength (), is (nullValue ()));
@@ -849,7 +848,6 @@ public void createGeoIndex() {
849848assertThat (indexResult .getMinLength (), is (nullValue ()));
850849assertThat (indexResult .getSparse (), is (true ));
851850assertThat (indexResult .getUnique (), is (false ));
852- assertThat (indexResult .getGeoJson (), is (false ));
853851final Integer minorVersion = Integer .valueOf (db .getVersion ().getVersion ().split ("\\ ." )[1 ]);
854852if (minorVersion <= 3 ) {
855853assertThat (indexResult .getType (), is (IndexType .geo1 ));
@@ -874,10 +872,8 @@ public void createGeo2Index() {
874872assertThat (indexResult .getUnique (), is (false ));
875873final Integer minorVersion = Integer .valueOf (db .getVersion ().getVersion ().split ("\\ ." )[1 ]);
876874if (minorVersion <= 3 ) {
877- assertThat (indexResult .getGeoJson (), is (nullValue ()));
878875assertThat (indexResult .getType (), is (IndexType .geo2 ));
879876} else {
880- assertThat (indexResult .getGeoJson (), is (false ));
881877assertThat (indexResult .getType (), is (IndexType .geo ));
882878}
883879}
@@ -892,7 +888,6 @@ public void createSkiplistIndex() {
892888assertThat (indexResult .getConstraint (), is (nullValue ()));
893889assertThat (indexResult .getFields (), hasItem ("a" ));
894890assertThat (indexResult .getFields (), hasItem ("b" ));
895- assertThat (indexResult .getGeoJson (), is (nullValue ()));
896891assertThat (indexResult .getId (), startsWith (COLLECTION_NAME ));
897892assertThat (indexResult .getIsNewlyCreated (), is (true ));
898893assertThat (indexResult .getMinLength (), is (nullValue ()));
@@ -911,7 +906,6 @@ public void createPersistentIndex() {
911906assertThat (indexResult .getConstraint (), is (nullValue ()));
912907assertThat (indexResult .getFields (), hasItem ("a" ));
913908assertThat (indexResult .getFields (), hasItem ("b" ));
914- assertThat (indexResult .getGeoJson (), is (nullValue ()));
915909assertThat (indexResult .getId (), startsWith (COLLECTION_NAME ));
916910assertThat (indexResult .getIsNewlyCreated (), is (true ));
917911assertThat (indexResult .getMinLength (), is (nullValue ()));
@@ -928,7 +922,6 @@ public void createFulltextIndex() {
928922assertThat (indexResult , is (notNullValue ()));
929923assertThat (indexResult .getConstraint (), is (nullValue ()));
930924assertThat (indexResult .getFields (), hasItem ("a" ));
931- assertThat (indexResult .getGeoJson (), is (nullValue ()));
932925assertThat (indexResult .getId (), startsWith (COLLECTION_NAME ));
933926assertThat (indexResult .getIsNewlyCreated (), is (true ));
934927assertThat (indexResult .getSparse (), is (true ));
0 commit comments