@Test public void typicalFilterNotBeekeeperManagedNullMap() { when(alterPartitionEvent.getTableParameters()).thenReturn(null); Boolean filter = listenerEventFilter.isFiltered(alterPartitionEvent, UNREFERENCED); assertThat(filter).isTrue(); }
@Override public boolean isFiltered(ListenerEvent listenerEvent, LifecycleEventType lifecycleEventType) { Map<String, String> tableParameters = listenerEvent.getTableParameters(); if (tableParameters == null) { return true; } return !Boolean.parseBoolean(tableParameters.get(lifecycleEventType.getTableParameterName())); }
TableParameterListenerEventFilter implements ListenerEventFilter { @Override public boolean isFiltered(ListenerEvent listenerEvent, LifecycleEventType lifecycleEventType) { Map<String, String> tableParameters = listenerEvent.getTableParameters(); if (tableParameters == null) { return true; } return !Boolean.parseBoolean(tableParameters.get(lifecycleEventType.getTableParameterName())); } }
TableParameterListenerEventFilter implements ListenerEventFilter { @Override public boolean isFiltered(ListenerEvent listenerEvent, LifecycleEventType lifecycleEventType) { Map<String, String> tableParameters = listenerEvent.getTableParameters(); if (tableParameters == null) { return true; } return !Boolean.parseBoolean(tableParameters.get(lifecycleEventType.getTableParameterName())); }  }
TableParameterListenerEventFilter implements ListenerEventFilter { @Override public boolean isFiltered(ListenerEvent listenerEvent, LifecycleEventType lifecycleEventType) { Map<String, String> tableParameters = listenerEvent.getTableParameters(); if (tableParameters == null) { return true; } return !Boolean.parseBoolean(tableParameters.get(lifecycleEventType.getTableParameterName())); }  @Override boolean isFiltered(ListenerEvent listenerEvent, LifecycleEventType lifecycleEventType); }
TableParameterListenerEventFilter implements ListenerEventFilter { @Override public boolean isFiltered(ListenerEvent listenerEvent, LifecycleEventType lifecycleEventType) { Map<String, String> tableParameters = listenerEvent.getTableParameters(); if (tableParameters == null) { return true; } return !Boolean.parseBoolean(tableParameters.get(lifecycleEventType.getTableParameterName())); }  @Override boolean isFiltered(ListenerEvent listenerEvent, LifecycleEventType lifecycleEventType);  }