RealtimeResource { @OnError public void onError(Throwable t) { LOG.error("Uncought exception in realtime resource", t); } RealtimeResource(); @OnOpen void openSocket(@PathParam(RT_COMPUTE_ENDPOINT_PARAM) ConnectionType type,
                           Session session); @OnMessage void publishEvent(ChatAlyticsEvent event); @OnClose void close(Session session, CloseReason reason); @OnError void onError(Throwable t); int numSessions(); static final String RT_COMPUTE_ENDPOINT; static final String RT_FULL_ENDPOINT; }
@Test public void testOnError() { underTest.onError(new RuntimeException("log")); }