@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 (sessionId != null) { config.setDefaultClientSessionId(sessionId); config.setDefaultServerSessionId(sessionId); } }
SessionResumptionDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (sessionId != null) { config.setDefaultClientSessionId(sessionId); config.setDefaultServerSessionId(sessionId); } } }
SessionResumptionDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (sessionId != null) { config.setDefaultClientSessionId(sessionId); config.setDefaultServerSessionId(sessionId); } } SessionResumptionDelegate(); }
SessionResumptionDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (sessionId != null) { config.setDefaultClientSessionId(sessionId); config.setDefaultServerSessionId(sessionId); } } SessionResumptionDelegate(); byte[] getSessionId(); void setSessionId(byte[] sessionId); @Override void applyDelegate(Config config); }
SessionResumptionDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (sessionId != null) { config.setDefaultClientSessionId(sessionId); config.setDefaultServerSessionId(sessionId); } } SessionResumptionDelegate(); byte[] getSessionId(); void setSessionId(byte[] sessionId); @Override void applyDelegate(Config config);  }