@Test public void typicalFilterMessage() { setupFilterMocks(false, true); List<HousekeepingEntity> housekeepingEntities = handler.handleMessage(messageEvent); assertTrue(housekeepingEntities.isEmpty()); }
public List<HousekeepingEntity> handleMessage(MessageEvent event) { ListenerEvent listenerEvent = event.getEvent(); if (shouldFilterMessage(listenerEvent)) { return Collections.emptyList(); } return generateHousekeepingEntities(listenerEvent); }
MessageEventHandler { public List<HousekeepingEntity> handleMessage(MessageEvent event) { ListenerEvent listenerEvent = event.getEvent(); if (shouldFilterMessage(listenerEvent)) { return Collections.emptyList(); } return generateHousekeepingEntities(listenerEvent); } }
MessageEventHandler { public List<HousekeepingEntity> handleMessage(MessageEvent event) { ListenerEvent listenerEvent = event.getEvent(); if (shouldFilterMessage(listenerEvent)) { return Collections.emptyList(); } return generateHousekeepingEntities(listenerEvent); } MessageEventHandler(
      HousekeepingEntityGenerator generator,
      List<ListenerEventFilter> filters
  ); }
MessageEventHandler { public List<HousekeepingEntity> handleMessage(MessageEvent event) { ListenerEvent listenerEvent = event.getEvent(); if (shouldFilterMessage(listenerEvent)) { return Collections.emptyList(); } return generateHousekeepingEntities(listenerEvent); } MessageEventHandler(
      HousekeepingEntityGenerator generator,
      List<ListenerEventFilter> filters
  ); List<HousekeepingEntity> handleMessage(MessageEvent event); }
MessageEventHandler { public List<HousekeepingEntity> handleMessage(MessageEvent event) { ListenerEvent listenerEvent = event.getEvent(); if (shouldFilterMessage(listenerEvent)) { return Collections.emptyList(); } return generateHousekeepingEntities(listenerEvent); } MessageEventHandler(
      HousekeepingEntityGenerator generator,
      List<ListenerEventFilter> filters
  ); List<HousekeepingEntity> handleMessage(MessageEvent event);  }