EventsResource { @OnError public void onError(Throwable t) { LOG.error(Throwables.getStackTraceAsString(t)); } EventsResource(); @OnOpen void onOpen(Session session); @OnClose void close(Session session, CloseReason reason); @OnMessage void onMessage(ChatAlyticsEvent event); @OnError void onError(Throwable t); static final String RT_EVENT_ENDPOINT; }
@Test public void testOnError() { underTest.onError(new RuntimeException()); }