Skip to content

Commit

Permalink
Fix compilation errors in IndexGraveyardTests
Browse files Browse the repository at this point in the history
backport gone wrong
  • Loading branch information
ywelsch committed Nov 13, 2017
1 parent 08bcde1 commit ea98113
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@

package org.elasticsearch.cluster.metadata;

import org.elasticsearch.common.Strings;
import org.elasticsearch.common.UUIDs;
import org.elasticsearch.common.io.stream.BytesStreamOutput;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.xcontent.ToXContent;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentHelper;
import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.common.xcontent.json.JsonXContent;
import org.elasticsearch.index.Index;
Expand Down Expand Up @@ -70,7 +70,7 @@ public void testXContent() throws IOException {
builder.endObject();
if (graveyard.getTombstones().size() > 0) {
// check that date properly printed
assertThat(Strings.toString(graveyard, false, true),
assertThat(XContentHelper.toString(graveyard, new ToXContent.MapParams(Collections.singletonMap("human", "true"))),
containsString(XContentBuilder.DEFAULT_DATE_PRINTER.print(graveyard.getTombstones().get(0).getDeleteDateInMillis())));
}
XContentParser parser = createParser(JsonXContent.jsonXContent, builder.bytes());
Expand Down

0 comments on commit ea98113

Please sign in to comment.