Skip to content

Commit a83baab

Browse files
committed
Update test names
1 parent 366e46e commit a83baab

File tree

20 files changed

+23
-23
lines changed

20 files changed

+23
-23
lines changed

modules/mapper-extras/src/test/java/org/elasticsearch/index/mapper/RankFeatureFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public void testRejectMultiValuedFields() throws MapperParsingException, IOExcep
192192
e.getCause().getMessage());
193193
}
194194

195-
public void testParseSourceValue() throws IOException {
195+
public void testFetchValues() throws IOException {
196196
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
197197
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
198198
RankFeatureFieldMapper mapper = new RankFeatureFieldMapper.Builder("field").build(context);

modules/mapper-extras/src/test/java/org/elasticsearch/index/mapper/ScaledFloatFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ public void testMeta() throws Exception {
405405
assertEquals(mapping3, mapper.mappingSource().toString());
406406
}
407407

408-
public void testParseSourceValue() throws IOException {
408+
public void testFetchValues() throws IOException {
409409
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
410410
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
411411

plugins/analysis-icu/src/test/java/org/elasticsearch/index/mapper/ICUCollationKeywordFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ public void testUpdateIgnoreAbove() throws IOException {
489489
indexService.mapperService().merge("type", new CompressedXContent(mapping), MergeReason.MAPPING_UPDATE);
490490
}
491491

492-
public void testParseSourceValue() throws IOException {
492+
public void testFetchValues() throws IOException {
493493
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
494494
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
495495

plugins/mapper-annotated-text/src/internalClusterTest/java/org/elasticsearch/index/mapper/annotatedtext/AnnotatedTextFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ public void testEmptyName() throws IOException {
677677
assertThat(e.getMessage(), containsString("name cannot be empty string"));
678678
}
679679

680-
public void testParseSourceValue() throws IOException {
680+
public void testFetchValues() throws IOException {
681681
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
682682
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
683683

server/src/test/java/org/elasticsearch/index/mapper/BooleanFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public void testBoosts() throws Exception {
300300
assertEquals(new BoostQuery(new TermQuery(new Term("field", "T")), 2.0f), ft.termQuery("true", null));
301301
}
302302

303-
public void testParseSourceValue() throws IOException {
303+
public void testFetchValues() throws IOException {
304304
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
305305
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
306306

server/src/test/java/org/elasticsearch/index/mapper/CompletionFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ public void testLimitOfContextMappings() throws Throwable {
938938
CompletionFieldMapper.COMPLETION_CONTEXTS_LIMIT + "] has been exceeded"));
939939
}
940940

941-
public void testParseSourceValue() throws IOException {
941+
public void testFetchValues() throws IOException {
942942
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
943943
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
944944
NamedAnalyzer defaultAnalyzer = new NamedAnalyzer("standard", AnalyzerScope.INDEX, new StandardAnalyzer());

server/src/test/java/org/elasticsearch/index/mapper/DateFieldMapperTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ public void testMeta() throws Exception {
453453
assertEquals(mapping3, mapper.mappingSource().toString());
454454
}
455455

456-
public void testFetchValue() throws IOException {
456+
public void testFetchValues() throws IOException {
457457
DateFieldMapper mapper = createMapper(Resolution.MILLISECONDS, null);
458458
String date = "2020-05-15T21:33:02.000Z";
459459
assertEquals(List.of(date), fetchFromSource(mapper, null, date));
@@ -474,15 +474,15 @@ public void testFetchValue() throws IOException {
474474
assertEquals(List.of(nullValueDate), fetchFromSource(nullValueMapper, null, null));
475475
}
476476

477-
public void testFetchWithFormat() throws IOException {
477+
public void testFetchValuesWithFormat() throws IOException {
478478
DateFieldMapper mapper = createMapper(Resolution.NANOSECONDS, "strict_date_time", "1970-12-29T00:00:00.000Z");
479479
String date = "1990-12-29T00:00:00.000Z";
480480
assertEquals(List.of("1990/12/29"), fetchFromSource(mapper, "yyyy/MM/dd", date));
481481
assertEquals(List.of("662428800000"), fetchFromSource(mapper, "epoch_millis", date));
482482
assertEquals(List.of("1970/12/29"), fetchFromSource(mapper, "yyyy/MM/dd", null));
483483
}
484484

485-
public void testFetchNanos() throws IOException {
485+
public void testFetchValuesNanos() throws IOException {
486486
DateFieldMapper mapper = createMapper(Resolution.NANOSECONDS, "strict_date_time||epoch_millis");
487487
String date = "2020-05-15T21:33:02.123456789Z";
488488
assertEquals(List.of(date), fetchFromSource(mapper, null, date));

server/src/test/java/org/elasticsearch/index/mapper/GeoPointFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ public void testInvalidGeopointValuesIgnored() throws Exception {
591591
), XContentType.JSON)).rootDoc().getField("location"), nullValue());
592592
}
593593

594-
public void testParseSourceValue() throws IOException {
594+
public void testFetchValues() throws IOException {
595595
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
596596
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
597597

server/src/test/java/org/elasticsearch/index/mapper/GeoShapeFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ public String toXContentString(GeoShapeFieldMapper mapper) throws IOException {
362362
return toXContentString(mapper, true);
363363
}
364364

365-
public void testParseSourceValue() throws IOException {
365+
public void testFetchValues() throws IOException {
366366
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
367367
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
368368

server/src/test/java/org/elasticsearch/index/mapper/IpFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public void testEmptyName() throws IOException {
301301
assertThat(e.getMessage(), containsString("name cannot be empty string"));
302302
}
303303

304-
public void testParseSourceValue() throws IOException {
304+
public void testFetchValues() throws IOException {
305305
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
306306
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
307307

server/src/test/java/org/elasticsearch/index/mapper/IpRangeFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void testStoreCidr() throws Exception {
8686
}
8787
}
8888

89-
public void testParseSourceValue() throws IOException {
89+
public void testFetchValues() throws IOException {
9090
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
9191
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
9292

server/src/test/java/org/elasticsearch/index/mapper/KeywordFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ public void testMeta() throws Exception {
630630
assertEquals(mapping3, mapper.mappingSource().toString());
631631
}
632632

633-
public void testParseSourceValue() throws IOException {
633+
public void testFetchValues() throws IOException {
634634
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
635635
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
636636

server/src/test/java/org/elasticsearch/index/mapper/LegacyGeoShapeFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ public String toXContentString(LegacyGeoShapeFieldMapper mapper) throws IOExcept
845845
return toXContentString(mapper, true);
846846
}
847847

848-
public void testParseSourceValue() throws IOException {
848+
public void testFetchValues() throws IOException {
849849
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
850850
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
851851

server/src/test/java/org/elasticsearch/index/mapper/NumberFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ public void testEmptyName() throws IOException {
407407
}
408408
}
409409

410-
public void testParseSourceValue() throws IOException {
410+
public void testFetchValues() throws IOException {
411411
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
412412
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
413413

server/src/test/java/org/elasticsearch/index/mapper/RangeFieldMapperTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ public void testIllegalFormatField() throws Exception {
492492
assertEquals("Invalid format: [[test_format]]: Unknown pattern letter: t", e.getMessage());
493493
}
494494

495-
public void testParseSourceValue() throws IOException {
495+
public void testFetchValues() throws IOException {
496496
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
497497
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
498498

@@ -507,7 +507,7 @@ public void testParseSourceValue() throws IOException {
507507
assertEquals(List.of(Map.of("lt", "1990/12/29", "gte", "1988/12/06")), fetchFromSource(dateMapper, null, dateRange));
508508
}
509509

510-
public void testParseSourceValueWithFormat() throws IOException {
510+
public void testFetchValuesWithFormat() throws IOException {
511511
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
512512
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
513513

server/src/test/java/org/elasticsearch/index/mapper/TextFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ public void testMeta() throws Exception {
13391339
assertEquals(mapping3, mapper.mappingSource().toString());
13401340
}
13411341

1342-
public void testParseSourceValue() throws IOException {
1342+
public void testFetchValues() throws IOException {
13431343
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
13441344
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
13451345

x-pack/plugin/mapper-flattened/src/test/java/org/elasticsearch/xpack/flattened/mapper/FlatObjectFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ public void testSplitQueriesOnWhitespace() throws IOException {
513513
new String[] {"Hello", "World"});
514514
}
515515

516-
public void testParseSourceValue() throws IOException {
516+
public void testFetchValues() throws IOException {
517517
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
518518
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
519519

x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/index/mapper/PointFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public void testIgnoreZValue() throws IOException {
303303
assertThat(ignoreZValue, equalTo(false));
304304
}
305305

306-
public void testParseSourceValue() throws IOException {
306+
public void testFetchValues() throws IOException {
307307
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
308308
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
309309

x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/index/mapper/ShapeFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public String toXContentString(ShapeFieldMapper mapper) throws IOException {
331331
return toXContentString(mapper, true);
332332
}
333333

334-
public void testParseSourceValue() throws IOException {
334+
public void testFetchValues() throws IOException {
335335
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
336336
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
337337

x-pack/plugin/wildcard/src/test/java/org/elasticsearch/xpack/wildcard/mapper/WildcardFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ protected String convertToRandomRegex(String randomValue) {
786786
return result.toString();
787787
}
788788

789-
public void testParseSourceValue() throws IOException {
789+
public void testFetchValues() throws IOException {
790790
Settings settings = Settings.builder().put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT.id).build();
791791
Mapper.BuilderContext context = new Mapper.BuilderContext(settings, new ContentPath());
792792

0 commit comments

Comments
 (0)