@Test public void parseWithInSubQueryNode() { DocumentReference user = new DocumentReference("xwiki", "XWiki", "userA"); when(serializer.serialize(user)).thenReturn("xwiki:XWiki.UserA"); Map<String, Object> parameters = new HashMap<>(); parameters.put("id", 12345); AbstractNode testAST = new NotNode( new InSubQueryNode(value(EventProperty.GROUP_ID), "select fb.name in FooBar fb where fb.id = :id", parameters) ); ExpressionNodeToHQLConverter.HQLQuery result = parser.parse(testAST); assertEquals(" NOT (event.requestId IN (select fb.name in FooBar fb where fb.id = :id))", result.getQuery()); assertEquals(12345, result.getQueryParameters().get("id")); }
public HQLQuery parse(ExpressionNode node) { HQLQuery result = new HQLQuery(); result.query = parseBlock(node, result); return result; }
ExpressionNodeToHQLConverter { public HQLQuery parse(ExpressionNode node) { HQLQuery result = new HQLQuery(); result.query = parseBlock(node, result); return result; } }
ExpressionNodeToHQLConverter { public HQLQuery parse(ExpressionNode node) { HQLQuery result = new HQLQuery(); result.query = parseBlock(node, result); return result; }  }
ExpressionNodeToHQLConverter { public HQLQuery parse(ExpressionNode node) { HQLQuery result = new HQLQuery(); result.query = parseBlock(node, result); return result; }  HQLQuery parse(ExpressionNode node); }
ExpressionNodeToHQLConverter { public HQLQuery parse(ExpressionNode node) { HQLQuery result = new HQLQuery(); result.query = parseBlock(node, result); return result; }  HQLQuery parse(ExpressionNode node);  }