Skip to content

Commit 2968499

Browse files
committed
codestyle
1 parent 05b8829 commit 2968499

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

java-client/src/test/java/co/elastic/clients/json/jackson/JacksonJsonpParserTest.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
package co.elastic.clients.json.jackson;
2121

2222
import co.elastic.clients.elasticsearch.core.MsearchResponse;
23-
import co.elastic.clients.testkit.ModelTestCase;
2423
import co.elastic.clients.json.JsonpDeserializer;
2524
import co.elastic.clients.json.JsonpMapper;
25+
import co.elastic.clients.testkit.ModelTestCase;
2626
import jakarta.json.stream.JsonParser;
2727
import jakarta.json.stream.JsonParser.Event;
2828
import org.junit.jupiter.api.Test;
@@ -31,7 +31,8 @@
3131

3232
public class JacksonJsonpParserTest extends ModelTestCase {
3333

34-
private static final String json = "{ 'foo': 'fooValue', 'bar': { 'baz': 1}, 'quux': [true] }".replace('\'', '"');
34+
private static final String json =
35+
"{ 'foo': 'fooValue', 'bar': { 'baz': 1}, 'quux': [true] }".replace('\'', '"');
3536

3637
@Test
3738
public void testEventStream() {
@@ -93,12 +94,13 @@ public void testForbidValueGettersAfterHasNext() {
9394
try {
9495
assertEquals("fooValue", parser.getString());
9596
fail();
96-
} catch(IllegalStateException e) {
97+
} catch (IllegalStateException e) {
9798
// expected
9899
}
99100
}
100101

101-
@Test void testMultiSearchResponse() {
102+
@Test
103+
void testMultiSearchResponse() {
102104
String json =
103105
"{\n" +
104106
" \"took\" : 1,\n" +
@@ -157,7 +159,8 @@ public void testForbidValueGettersAfterHasNext() {
157159
"}\n";
158160

159161
JsonpMapper mapper = new JacksonJsonpMapper();
160-
mapper = mapper.withAttribute("co.elastic.clients:Deserializer:_global.msearch.Response.TDocument", JsonpDeserializer.of(Foo.class));
162+
mapper = mapper.withAttribute("co.elastic.clients:Deserializer:_global.msearch.Response.TDocument",
163+
JsonpDeserializer.of(Foo.class));
161164
@SuppressWarnings("unchecked")
162165
MsearchResponse<Foo> response = fromJson(json, MsearchResponse.class, mapper);
163166

0 commit comments

Comments
 (0)