You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/src/test/java/org/elasticsearch/index/mapper/vectors/SparseVectorFieldMapperTests.java
+24-6Lines changed: 24 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -311,7 +311,10 @@ public void testTokensFreqRatioCorrect() {
311
311
b.endObject();
312
312
b.endObject();
313
313
})));
314
-
assertThat(eTestInteger.getMessage(), containsString("[pruning_config] field [tokens_freq_ratio_threshold] field should be an integer between 1 and 100"));
314
+
assertThat(
315
+
eTestInteger.getMessage(),
316
+
containsString("[pruning_config] field [tokens_freq_ratio_threshold] field should be an integer between 1 and 100")
@@ -321,7 +324,10 @@ public void testTokensFreqRatioCorrect() {
321
324
b.endObject();
322
325
b.endObject();
323
326
})));
324
-
assertThat(eTestRangeLower.getMessage(), containsString("[pruning_config] field [tokens_freq_ratio_threshold] field should be an integer between 1 and 100"));
327
+
assertThat(
328
+
eTestRangeLower.getMessage(),
329
+
containsString("[pruning_config] field [tokens_freq_ratio_threshold] field should be an integer between 1 and 100")
@@ -331,7 +337,10 @@ public void testTokensFreqRatioCorrect() {
331
337
b.endObject();
332
338
b.endObject();
333
339
})));
334
-
assertThat(eTestRangeHigher.getMessage(), containsString("[pruning_config] field [tokens_freq_ratio_threshold] field should be an integer between 1 and 100"));
340
+
assertThat(
341
+
eTestRangeHigher.getMessage(),
342
+
containsString("[pruning_config] field [tokens_freq_ratio_threshold] field should be an integer between 1 and 100")
343
+
);
335
344
}
336
345
337
346
publicvoidtestTokensWeightThresholdCorrect() {
@@ -343,7 +352,10 @@ public void testTokensWeightThresholdCorrect() {
343
352
b.endObject();
344
353
b.endObject();
345
354
})));
346
-
assertThat(eTestDouble.getMessage(), containsString("[pruning_config] field [tokens_weight_threshold] field should be an number between 0.0 and 1.0"));
355
+
assertThat(
356
+
eTestDouble.getMessage(),
357
+
containsString("[pruning_config] field [tokens_weight_threshold] field should be an number between 0.0 and 1.0")
@@ -353,7 +365,10 @@ public void testTokensWeightThresholdCorrect() {
353
365
b.endObject();
354
366
b.endObject();
355
367
})));
356
-
assertThat(eTestRangeLower.getMessage(), containsString("[pruning_config] field [tokens_weight_threshold] field should be an number between 0.0 and 1.0"));
368
+
assertThat(
369
+
eTestRangeLower.getMessage(),
370
+
containsString("[pruning_config] field [tokens_weight_threshold] field should be an number between 0.0 and 1.0")
@@ -363,7 +378,10 @@ public void testTokensWeightThresholdCorrect() {
363
378
b.endObject();
364
379
b.endObject();
365
380
})));
366
-
assertThat(eTestRangeHigher.getMessage(), containsString("[pruning_config] field [tokens_weight_threshold] field should be an number between 0.0 and 1.0"));
381
+
assertThat(
382
+
eTestRangeHigher.getMessage(),
383
+
containsString("[pruning_config] field [tokens_weight_threshold] field should be an number between 0.0 and 1.0")
0 commit comments