Skip to content

Commit

Permalink
codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
l-trotta committed Jul 16, 2024
1 parent b60610d commit ec04e78
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit ec04e78

Please sign in to comment.