@Test public void typicalFilterDropTableEvent() { when(dropTableEvent.getEventType()).thenReturn(DROP_TABLE); boolean filter = listenerEventFilter.isFiltered(dropTableEvent, UNREFERENCED); assertThat(filter).isFalse(); }
@Override public boolean isFiltered(ListenerEvent listenerEvent, LifecycleEventType lifecycleEventType) { Class<? extends ListenerEvent> eventClass = listenerEvent.getEventType().eventClass(); return !eventClasses.contains(eventClass); }
EventTypeListenerEventFilter implements ListenerEventFilter { @Override public boolean isFiltered(ListenerEvent listenerEvent, LifecycleEventType lifecycleEventType) { Class<? extends ListenerEvent> eventClass = listenerEvent.getEventType().eventClass(); return !eventClasses.contains(eventClass); } }
EventTypeListenerEventFilter implements ListenerEventFilter { @Override public boolean isFiltered(ListenerEvent listenerEvent, LifecycleEventType lifecycleEventType) { Class<? extends ListenerEvent> eventClass = listenerEvent.getEventType().eventClass(); return !eventClasses.contains(eventClass); } EventTypeListenerEventFilter(List<Class<? extends ListenerEvent>> eventClasses); }
EventTypeListenerEventFilter implements ListenerEventFilter { @Override public boolean isFiltered(ListenerEvent listenerEvent, LifecycleEventType lifecycleEventType) { Class<? extends ListenerEvent> eventClass = listenerEvent.getEventType().eventClass(); return !eventClasses.contains(eventClass); } EventTypeListenerEventFilter(List<Class<? extends ListenerEvent>> eventClasses); @Override boolean isFiltered(ListenerEvent listenerEvent, LifecycleEventType lifecycleEventType); }
EventTypeListenerEventFilter implements ListenerEventFilter { @Override public boolean isFiltered(ListenerEvent listenerEvent, LifecycleEventType lifecycleEventType) { Class<? extends ListenerEvent> eventClass = listenerEvent.getEventType().eventClass(); return !eventClasses.contains(eventClass); } EventTypeListenerEventFilter(List<Class<? extends ListenerEvent>> eventClasses); @Override boolean isFiltered(ListenerEvent listenerEvent, LifecycleEventType lifecycleEventType);  }