Skip to content

Commit cdbb14f

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 8e02715 commit cdbb14f

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,7 @@ public void testParseMeta() {
133133
MappingParserContext parserContext = createParserContext(buildSettings());
134134

135135
{
136-
MapperParsingException e = expectThrows(
137-
MapperParsingException.class,
138-
() -> TypeParsers.parseMeta("foo", 3, parserContext)
139-
);
136+
MapperParsingException e = expectThrows(MapperParsingException.class, () -> TypeParsers.parseMeta("foo", 3, parserContext));
140137
assertEquals("[meta] must be an object, got Integer[3] for field [foo]", e.getMessage());
141138
}
142139

@@ -178,10 +175,7 @@ public void testParseMeta() {
178175
{
179176
Map<String, String> meta = new HashMap<>();
180177
meta.put("foo", null);
181-
MapperParsingException e = expectThrows(
182-
MapperParsingException.class,
183-
() -> TypeParsers.parseMeta("foo", meta, parserContext)
184-
);
178+
MapperParsingException e = expectThrows(MapperParsingException.class, () -> TypeParsers.parseMeta("foo", meta, parserContext));
185179
assertEquals("[meta] values can't be null (field [foo])", e.getMessage());
186180
}
187181

0 commit comments

Comments
 (0)