diff --git a/java-client/src/test/java/co/elastic/clients/json/WithJsonTest.java b/java-client/src/test/java/co/elastic/clients/json/WithJsonTest.java index e0edeefff..02a9e15a0 100644 --- a/java-client/src/test/java/co/elastic/clients/json/WithJsonTest.java +++ b/java-client/src/test/java/co/elastic/clients/json/WithJsonTest.java @@ -175,11 +175,14 @@ public void testInternallyTaggedUnion() { @Test public void testExternalTaggedUnion() { - RoleTemplateScript withSource = RoleTemplateScript.of(j -> j.withJson(new StringReader("{\"source\": {\"match\": {\"category\": \"click\"}}}"))); + RoleTemplateScript withSource = RoleTemplateScript.of(j -> j + .withJson(new StringReader("{\"source\": {\"match\": {\"category\": \"click\"}}}"))); assertTrue(withSource.source().isQueryObject()); - RoleTemplateScript withStringSource = RoleTemplateScript.of(j -> j.withJson(new StringReader("{\"source\": \"string\"}"))); + RoleTemplateScript withStringSource = RoleTemplateScript.of(j -> j + .withJson(new StringReader("{\"source\": \"string\"}"))); assertTrue(withStringSource.source().isQueryString()); - RoleTemplateScript withStoredScript = RoleTemplateScript.of(j -> j.withJson(new StringReader("{\"id\": \"foo\"}"))); + RoleTemplateScript withStoredScript = RoleTemplateScript.of(j -> j + .withJson(new StringReader("{\"id\": \"foo\"}"))); assertTrue(!withStoredScript.id().isEmpty()); } }