You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2021/09/16 22:06:57 UTC
[GitHub] [geode] kirklund commented on a change in pull request #6874: GEODE-9602: QueryObserver improvements.
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: notifications-unsubscribe@geode.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org