@Test public void testNothingSetNothingChanges() { Config config = Config.createConfig(); Config config2 = Config.createConfig(); delegate.applyDelegate(config); assertTrue(EqualsBuilder.reflectionEquals(config, config2, "keyStore", "ourCertificate")); }
@Override public void applyDelegate(Config config) { if (heartbeatMode != null) { config.setHeartbeatMode(heartbeatMode); config.setAddHeartbeatExtension(true); } }
HeartbeatDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (heartbeatMode != null) { config.setHeartbeatMode(heartbeatMode); config.setAddHeartbeatExtension(true); } } }
HeartbeatDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (heartbeatMode != null) { config.setHeartbeatMode(heartbeatMode); config.setAddHeartbeatExtension(true); } } HeartbeatDelegate(); }
HeartbeatDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (heartbeatMode != null) { config.setHeartbeatMode(heartbeatMode); config.setAddHeartbeatExtension(true); } } HeartbeatDelegate(); HeartbeatMode getHeartbeatMode(); void setHeartbeatMode(HeartbeatMode heartbeatMode); @Override void applyDelegate(Config config); }
HeartbeatDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (heartbeatMode != null) { config.setHeartbeatMode(heartbeatMode); config.setAddHeartbeatExtension(true); } } HeartbeatDelegate(); HeartbeatMode getHeartbeatMode(); void setHeartbeatMode(HeartbeatMode heartbeatMode); @Override void applyDelegate(Config config);  }