client/hotrod-client/src/test/java/org/infinispan/client/hotrod/event/RemoteContinuousQueryTest.java
/**
    * Using grouping and aggregation with continuous query is not allowed.
    */
Using grouping and aggregation with continuous query is not allowed.
Using grouping and aggregation with continuous query is not allowed .
@Test(expectedExceptions = HotRodClientException.class, expectedExceptionsMessageRegExp = ".*ISPN028509:.*")
   public void testDisallowGroupingAndAggregation() {
      Query query = Search.getQueryFactory(remoteCache).from(UserPB.class)
            .select(max("age"))
            .having("age").gte(20)
            .build();
      ContinuousQuery<String, User> continuousQuery = Search.getContinuousQuery(remoteCache);
      ContinuousQueryListener<String, Object[]> listener = new ContinuousQueryListener<String, Object[]>() {
      };
      continuousQuery.addContinuousQueryListener(query, listener);
   }
@ Test ( expectedExceptions = HotRodClientException . class , expectedExceptionsMessageRegExp = ".*ISPN028509:.*" ) public void testDisallowGroupingAndAggregation ( ) { Query query = Search . getQueryFactory ( remoteCache ) . from ( UserPB . class ) . select ( max ( "age" ) ) . having ( "age" ) . gte ( 20 ) . build ( ) ; ContinuousQuery < String , User > continuousQuery = Search . getContinuousQuery ( remoteCache ) ; ContinuousQueryListener < String , Object [ ] > listener = new ContinuousQueryListener < String , Object [ ] > ( ) { } ; continuousQuery . addContinuousQueryListener ( query , listener ) ; }
Using grouping and aggregation with continuous query is not allowed.
Using grouping and aggregation with continuous query is not allowed .