From d1eba4baf28456ba729c6aae16bf1edc3d7090be Mon Sep 17 00:00:00 2001 From: Areek Zillur Date: Wed, 16 Mar 2016 12:54:09 -0400 Subject: [PATCH] fix tests --- .../org/elasticsearch/gateway/MetaDataStateFormatTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/test/java/org/elasticsearch/gateway/MetaDataStateFormatTests.java b/core/src/test/java/org/elasticsearch/gateway/MetaDataStateFormatTests.java index ef9fe55c92d..bac257af2a9 100644 --- a/core/src/test/java/org/elasticsearch/gateway/MetaDataStateFormatTests.java +++ b/core/src/test/java/org/elasticsearch/gateway/MetaDataStateFormatTests.java @@ -254,7 +254,7 @@ public class MetaDataStateFormatTests extends ESTestCase { try (XContentBuilder xcontentBuilder = XContentFactory.contentBuilder(format.format(), Files.newOutputStream(dir2.resolve(MetaDataStateFormat.STATE_DIR_NAME).resolve(MetaData.GLOBAL_STATE_FILE_PREFIX + v2)))) { xcontentBuilder.startObject(); - format.toXContent(xcontentBuilder, randomMeta()); + MetaData.Builder.toXContent(randomMeta(), xcontentBuilder, ToXContent.EMPTY_PARAMS); xcontentBuilder.endObject(); } } @@ -298,7 +298,7 @@ public class MetaDataStateFormatTests extends ESTestCase { try (XContentBuilder xcontentBuilder = XContentFactory.contentBuilder(MetaData.FORMAT.format(), Files.newOutputStream(dir2.resolve(MetaDataStateFormat.STATE_DIR_NAME).resolve(MetaData.GLOBAL_STATE_FILE_PREFIX + v)))) { xcontentBuilder.startObject(); - format.toXContent(xcontentBuilder, randomMeta()); + MetaData.Builder.toXContent(randomMeta(), xcontentBuilder, ToXContent.EMPTY_PARAMS); xcontentBuilder.endObject(); } @@ -333,7 +333,7 @@ public class MetaDataStateFormatTests extends ESTestCase { try (XContentBuilder xcontentBuilder = XContentFactory.contentBuilder(MetaData.FORMAT.format(), Files.newOutputStream(dirs[i].resolve(MetaDataStateFormat.STATE_DIR_NAME).resolve("global-" + j)))) { xcontentBuilder.startObject(); - format.toXContent(xcontentBuilder, meta.get(j)); + MetaData.Builder.toXContent(meta.get(j), xcontentBuilder, ToXContent.EMPTY_PARAMS); xcontentBuilder.endObject(); } }