@Test public void generateQueryWithUntilDateAndBlackList() throws Exception { Date untilDate = new Date(1000000000000L); NotificationParameters parameters = new NotificationParameters(); parameters.user = USER_REFERENCE; parameters.format = NotificationFormat.ALERT; parameters.endDate = untilDate; parameters.blackList = Arrays.asList("event1", "event2"); parameters.preferences = Arrays.asList(pref1); parameters.filterPreferences = Arrays.asList(fakeFilterPreference); ExpressionNode node = this.queryGenerator.generateQueryExpression(parameters); assertEquals("((((TYPE = \"create\" " + "AND DATE >= \"" + this.pref1StartDate.toString() + "\") " + "AND NOT (ID IN (\"event1\", \"event2\"))) " + "AND DATE <= \"" + untilDate.toString() + "\") " + "AND HIDDEN <> true) " + "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);  }