@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 (maxFragmentLength != null) { config.setAddMaxFragmentLengthExtension(true); config.setMaxFragmentLength(MaxFragmentLength.getMaxFragmentLength(maxFragmentLength.byteValue())); } }
MaxFragmentLengthDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (maxFragmentLength != null) { config.setAddMaxFragmentLengthExtension(true); config.setMaxFragmentLength(MaxFragmentLength.getMaxFragmentLength(maxFragmentLength.byteValue())); } } }
MaxFragmentLengthDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (maxFragmentLength != null) { config.setAddMaxFragmentLengthExtension(true); config.setMaxFragmentLength(MaxFragmentLength.getMaxFragmentLength(maxFragmentLength.byteValue())); } } MaxFragmentLengthDelegate(); }
MaxFragmentLengthDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (maxFragmentLength != null) { config.setAddMaxFragmentLengthExtension(true); config.setMaxFragmentLength(MaxFragmentLength.getMaxFragmentLength(maxFragmentLength.byteValue())); } } MaxFragmentLengthDelegate(); Integer getMaxFragmentLength(); void setMaxFragmentLength(Integer maxFragmentLength); @Override void applyDelegate(Config config); }
MaxFragmentLengthDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (maxFragmentLength != null) { config.setAddMaxFragmentLengthExtension(true); config.setMaxFragmentLength(MaxFragmentLength.getMaxFragmentLength(maxFragmentLength.byteValue())); } } MaxFragmentLengthDelegate(); Integer getMaxFragmentLength(); void setMaxFragmentLength(Integer maxFragmentLength); @Override void applyDelegate(Config config);  }