@Test public void parseWithInListOfReadEventsNode() { DocumentReference user = new DocumentReference("xwiki", "XWiki", "userA"); when(serializer.serialize(user)).thenReturn("xwiki:XWiki.UserA"); AbstractNode testAST = new NotNode( new InListOfReadEventsNode(user) ); ExpressionNodeToHQLConverter.HQLQuery result = parser.parse(testAST); assertEquals(" NOT (" + "event IN (select status.activityEvent from LegacyEventStatus status " + "where status.activityEvent = event and status.entityId = :userStatusRead " + "and status.read = true))", result.getQuery()); assertEquals("xwiki:XWiki.UserA", result.getQueryParameters().get("userStatusRead")); }
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);  }