223224225226227228229230231232233
protected void handleListenerException(Throwable ex) { throw new RuntimeException(ex); } }; listenerAdapter.onEvent(event()); assertThat(listener.count, is(1)); } class SampleListener implements ContinuousQueryListener {