@Test public void testApnsConnectionConfiguration() { final ApnsConnectionConfiguration configuration = new ApnsConnectionConfiguration(); assertTrue(configuration.getSentNotificationBufferCapacity() > 0); assertNull(configuration.getCloseAfterInactivityTime()); assertNull(configuration.getGracefulShutdownTimeout()); assertNull(configuration.getSendAttemptLimit()); }
@Test public void testApnsConnectionConfigurationApnsConnectionConfiguration() { final ApnsConnectionConfiguration configuration = new ApnsConnectionConfiguration(); configuration.setSentNotificationBufferCapacity(17); configuration.setCloseAfterInactivityTime(19); configuration.setGracefulShutdownTimeout(23); configuration.setSendAttemptLimit(29); final ApnsConnectionConfiguration configurationCopy = new ApnsConnectionConfiguration(configuration); assertEquals(configuration, configurationCopy); }