@Test public void generateQueryWithLocalUser() throws Exception { when(wikiDescriptorManager.getMainWikiId()).thenReturn("mainWiki"); NotificationParameters parameters = new NotificationParameters(); parameters.user = USER_REFERENCE; parameters.format = NotificationFormat.ALERT; parameters.fromDate = startDate; parameters.preferences = Arrays.asList(pref1); parameters.filterPreferences = Arrays.asList(fakeFilterPreference); ExpressionNode node = this.queryGenerator.generateQueryExpression(parameters); assertEquals("(((DATE >= \"" + this.startDate.toString() + "\" " + "AND (TYPE = \"create\" AND DATE >= \"" + this.pref1StartDate.toString() + "\")) AND HIDDEN <> true) " + "AND WIKI = \"Wiki xwiki\") " + "ORDER BY DATE DESC", node.toString()); }
public ExpressionNode generateQueryExpression(NotificationParameters parameters) throws EventStreamException { return this.expressionGenerator.generateQueryExpression(parameters); }
QueryGenerator { public ExpressionNode generateQueryExpression(NotificationParameters parameters) throws EventStreamException { return this.expressionGenerator.generateQueryExpression(parameters); } }
QueryGenerator { public ExpressionNode generateQueryExpression(NotificationParameters parameters) throws EventStreamException { return this.expressionGenerator.generateQueryExpression(parameters); }  }
QueryGenerator { public ExpressionNode generateQueryExpression(NotificationParameters parameters) throws EventStreamException { return this.expressionGenerator.generateQueryExpression(parameters); }  Query generateQuery(NotificationParameters parameters); ExpressionNode generateQueryExpression(NotificationParameters parameters); }
QueryGenerator { public ExpressionNode generateQueryExpression(NotificationParameters parameters) throws EventStreamException { return this.expressionGenerator.generateQueryExpression(parameters); }  Query generateQuery(NotificationParameters parameters); ExpressionNode generateQueryExpression(NotificationParameters parameters);  }