388389390391392393394395396397398
assertTrue("An exception should not occur here " + ex.getMessage(), false); } finally { if (publisher != null) { try { publisher.shutdown(); } catch (Throwable ex) { ex.printStackTrace(); fail("exception when shutting down the poller " + ex.getMessage()); }