From 69747a1dfe030c9b96557ff964f56438368cc5b7 Mon Sep 17 00:00:00 2001 From: zhichao-aws Date: Mon, 30 Oct 2023 10:52:12 +0800 Subject: [PATCH] tidy Signed-off-by: zhichao-aws --- .../query/NeuralSparseQueryBuilderTests.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test/java/org/opensearch/neuralsearch/query/NeuralSparseQueryBuilderTests.java b/src/test/java/org/opensearch/neuralsearch/query/NeuralSparseQueryBuilderTests.java index 6588b8c77..8681deeb5 100644 --- a/src/test/java/org/opensearch/neuralsearch/query/NeuralSparseQueryBuilderTests.java +++ b/src/test/java/org/opensearch/neuralsearch/query/NeuralSparseQueryBuilderTests.java @@ -129,13 +129,13 @@ public void testFromXContent_whenBuiltWithMaxTokenScore_thenThrowWarning() { } */ XContentBuilder xContentBuilder = XContentFactory.jsonBuilder() - .startObject() - .startObject(FIELD_NAME) - .field(QUERY_TEXT_FIELD.getPreferredName(), QUERY_TEXT) - .field(MODEL_ID_FIELD.getPreferredName(), MODEL_ID) - .field(MAX_TOKEN_SCORE_FIELD.getPreferredName(), MAX_TOKEN_SCORE) - .endObject() - .endObject(); + .startObject() + .startObject(FIELD_NAME) + .field(QUERY_TEXT_FIELD.getPreferredName(), QUERY_TEXT) + .field(MODEL_ID_FIELD.getPreferredName(), MODEL_ID) + .field(MAX_TOKEN_SCORE_FIELD.getPreferredName(), MAX_TOKEN_SCORE) + .endObject() + .endObject(); XContentParser contentParser = createParser(xContentBuilder); contentParser.nextToken();