Skip to content

Commit 7a12676

Browse files
committed
fix lint
1 parent cf7a302 commit 7a12676

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

server/src/test/java/org/elasticsearch/index/mapper/vectors/SparseVectorFieldMapperTests.java

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ public void testWithIndexOptionsPruningConfigOnly() throws Exception {
153153

154154
public void testDotInFieldName() throws Exception {
155155
DocumentMapper mapper = createDocumentMapper(fieldMapping(this::minimalMapping));
156-
ParsedDocument parsedDocument = mapper.parse(source(b -> b.field("field", Map.of("foo.bar", 10, "foobar", 20))));
156+
ParsedDocument parsedDocument = mapper.parse(
157+
source(b -> b.field("field", Map.of("foo.bar", 10, "foobar", 20)))
158+
);
157159

158160
List<IndexableField> fields = parsedDocument.rootDoc().getFields("field");
159161
assertEquals(2, fields.size());
@@ -194,7 +196,8 @@ public void testHandlesMultiValuedFields() throws MapperParsingException, IOExce
194196

195197
// then fail appropriately
196198
assertEquals(
197-
"[sparse_vector] fields take hashes that map a feature to a strictly positive float, but got unexpected token " + "START_ARRAY",
199+
"[sparse_vector] fields take hashes that map a feature to a strictly positive float, "
200+
+ "but got unexpected token " + "START_ARRAY",
198201
e.getCause().getMessage()
199202
);
200203

@@ -299,7 +302,8 @@ public void testTokensFreqRatioCorrect() {
299302
assertThat(
300303
eTestInteger.getMessage(),
301304
containsString(
302-
"Failed to parse mapping: org.elasticsearch.xcontent.XContentParseException: [0:0] [pruning_config] failed to parse field [tokens_freq_ratio_threshold]"
305+
"Failed to parse mapping: org.elasticsearch.xcontent.XContentParseException: "
306+
+ "[0:0] [pruning_config] failed to parse field [tokens_freq_ratio_threshold]"
303307
)
304308
);
305309

@@ -315,7 +319,8 @@ public void testTokensFreqRatioCorrect() {
315319
assertThat(
316320
eTestRangeLower.getMessage(),
317321
containsString(
318-
"Failed to parse mapping: java.lang.IllegalArgumentException: [tokens_freq_ratio_threshold] must be between [1] and [100], got -2.0"
322+
"Failed to parse mapping: java.lang.IllegalArgumentException: "
323+
+ "[tokens_freq_ratio_threshold] must be between [1] and [100], got -2.0"
319324
)
320325
);
321326

@@ -331,7 +336,8 @@ public void testTokensFreqRatioCorrect() {
331336
assertThat(
332337
eTestRangeHigher.getMessage(),
333338
containsString(
334-
"Failed to parse mapping: java.lang.IllegalArgumentException: [tokens_freq_ratio_threshold] must be between [1] and [100], got 101"
339+
"Failed to parse mapping: java.lang.IllegalArgumentException: "
340+
+ "[tokens_freq_ratio_threshold] must be between [1] and [100], got 101"
335341
)
336342
);
337343
}
@@ -349,7 +355,8 @@ public void testTokensWeightThresholdCorrect() {
349355
assertThat(
350356
eTestDouble.getMessage(),
351357
containsString(
352-
"Failed to parse mapping: org.elasticsearch.xcontent.XContentParseException: [0:0] [pruning_config] failed to parse field [tokens_weight_threshold]"
358+
"Failed to parse mapping: org.elasticsearch.xcontent.XContentParseException: "
359+
+ "[0:0] [pruning_config] failed to parse field [tokens_weight_threshold]"
353360
)
354361
);
355362

0 commit comments

Comments
 (0)