@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 (compressionMethods != null) { config.setDefaultClientSupportedCompressionMethods(compressionMethods); config.setDefaultServerSupportedCompressionMethods(compressionMethods); if (compressionMethods.size() > 0) { config.setDefaultSelectedCompressionMethod(compressionMethods.get(0)); } } }
CompressionDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (compressionMethods != null) { config.setDefaultClientSupportedCompressionMethods(compressionMethods); config.setDefaultServerSupportedCompressionMethods(compressionMethods); if (compressionMethods.size() > 0) { config.setDefaultSelectedCompressionMethod(compressionMethods.get(0)); } } } }
CompressionDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (compressionMethods != null) { config.setDefaultClientSupportedCompressionMethods(compressionMethods); config.setDefaultServerSupportedCompressionMethods(compressionMethods); if (compressionMethods.size() > 0) { config.setDefaultSelectedCompressionMethod(compressionMethods.get(0)); } } } CompressionDelegate(); }
CompressionDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (compressionMethods != null) { config.setDefaultClientSupportedCompressionMethods(compressionMethods); config.setDefaultServerSupportedCompressionMethods(compressionMethods); if (compressionMethods.size() > 0) { config.setDefaultSelectedCompressionMethod(compressionMethods.get(0)); } } } CompressionDelegate(); List<CompressionMethod> getCompressionMethods(); void setCompressionMethods(List<CompressionMethod> compressionMethods); @Override void applyDelegate(Config config); }
CompressionDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (compressionMethods != null) { config.setDefaultClientSupportedCompressionMethods(compressionMethods); config.setDefaultServerSupportedCompressionMethods(compressionMethods); if (compressionMethods.size() > 0) { config.setDefaultSelectedCompressionMethod(compressionMethods.get(0)); } } } CompressionDelegate(); List<CompressionMethod> getCompressionMethods(); void setCompressionMethods(List<CompressionMethod> compressionMethods); @Override void applyDelegate(Config config);  }