@Test public void testPostEventNull() throws Exception { EventLogImpl eventLog = new EventLogImpl(2, 4); eventLog.postEvent(null); Assert.assertFalse("Deque contains null.", eventLog.eventDeque.contains(null)); }
@Override public void postEvent(EventLogEvent event) { if (event == null) { LOGGER.warn("skipping null EventLogEvent"); return; } eventDeque.offerLast(event); }
EventLogImpl implements EventLog { @Override public void postEvent(EventLogEvent event) { if (event == null) { LOGGER.warn("skipping null EventLogEvent"); return; } eventDeque.offerLast(event); } }
EventLogImpl implements EventLog { @Override public void postEvent(EventLogEvent event) { if (event == null) { LOGGER.warn("skipping null EventLogEvent"); return; } eventDeque.offerLast(event); } @Inject  EventLogImpl(@Named("eventlog.threadpoolsize.core") int threadPoolSizeCore,
                        @Named("eventlog.threadpoolsize.max") int threadPoolSizeMax); }
EventLogImpl implements EventLog { @Override public void postEvent(EventLogEvent event) { if (event == null) { LOGGER.warn("skipping null EventLogEvent"); return; } eventDeque.offerLast(event); } @Inject  EventLogImpl(@Named("eventlog.threadpoolsize.core") int threadPoolSizeCore,
                        @Named("eventlog.threadpoolsize.max") int threadPoolSizeMax); @Override void register(EventLogListener listener); @Override void register(EventLogListener listener, List<Class<? extends EventLogEvent>> events); @Override @SuppressWarnings("unchecked") void register(EventLogListener listener, String... events); @Override void postEvent(EventLogEvent event); @Override void run(); }
EventLogImpl implements EventLog { @Override public void postEvent(EventLogEvent event) { if (event == null) { LOGGER.warn("skipping null EventLogEvent"); return; } eventDeque.offerLast(event); } @Inject  EventLogImpl(@Named("eventlog.threadpoolsize.core") int threadPoolSizeCore,
                        @Named("eventlog.threadpoolsize.max") int threadPoolSizeMax); @Override void register(EventLogListener listener); @Override void register(EventLogListener listener, List<Class<? extends EventLogEvent>> events); @Override @SuppressWarnings("unchecked") void register(EventLogListener listener, String... events); @Override void postEvent(EventLogEvent event); @Override void run();  }