kirklund commented on a change in pull request #6874:
URL: https://github.com/apache/geode/pull/6874#discussion_r710531334
##########
File path:
geode-core/src/integrationTest/java/org/apache/geode/cache/query/internal/QueryObserverCallbacksTest.java
##########
@@ -243,6 +245,59 @@ public void
beforeAggregationsAndGroupByShouldBeCalledForAggregateFunctions() th
verify(myQueryObserver,
times(queries.size())).beforeAggregationsAndGroupBy(any());
}
+ @Test
+ public void testBeforeAndAfterIterationEvaluateNoWhere() throws Exception {
+ Query query = queryService.newQuery(
+ "select count(*) from " + SEPARATOR + "portfolio p");
+
+ query.execute();
+ verify(myQueryObserver, times(0)).beforeIterationEvaluation(any(), any());
+ verify(myQueryObserver, times(0)).afterIterationEvaluation(any());
Review comment:
You can also use `never()`:
```java
verify(myQueryObserver, never()).beforeIterationEvaluation(any(), any());
verify(myQueryObserver, never()).afterIterationEvaluation(any());
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]