Skip to content

Commit a4f345b

Browse files
elasticsearchmachineseanstory
authored andcommitted
[CI] Auto commit changes from spotless
1 parent 4282385 commit a4f345b

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
@@ -132,10 +132,7 @@ public void testParseMeta() {
132132
MappingParserContext parserContext = createParserContext(buildSettings());
133133

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

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

0 commit comments

Comments
 (0)