@Test public void otherPropertiesConservedWhenAddingClient() { TimeLockClientConfig newConfig = TimeLockClientConfigs.copyWithClient(CONFIG_WITHOUT_CLIENT, CLIENT_1); assertThat(newConfig.serversList()).isEqualTo(SERVERS_LIST); }
public static TimeLockClientConfig copyWithClient(TimeLockClientConfig config, String namespace) { return ImmutableTimeLockClientConfig.builder() .from(config) .client(namespace) .build(); }
TimeLockClientConfigs { public static TimeLockClientConfig copyWithClient(TimeLockClientConfig config, String namespace) { return ImmutableTimeLockClientConfig.builder() .from(config) .client(namespace) .build(); } }
TimeLockClientConfigs { public static TimeLockClientConfig copyWithClient(TimeLockClientConfig config, String namespace) { return ImmutableTimeLockClientConfig.builder() .from(config) .client(namespace) .build(); } private  TimeLockClientConfigs(); }
TimeLockClientConfigs { public static TimeLockClientConfig copyWithClient(TimeLockClientConfig config, String namespace) { return ImmutableTimeLockClientConfig.builder() .from(config) .client(namespace) .build(); } private  TimeLockClientConfigs(); static TimeLockClientConfig copyWithClient(TimeLockClientConfig config, String namespace); }
TimeLockClientConfigs { public static TimeLockClientConfig copyWithClient(TimeLockClientConfig config, String namespace) { return ImmutableTimeLockClientConfig.builder() .from(config) .client(namespace) .build(); } private  TimeLockClientConfigs(); static TimeLockClientConfig copyWithClient(TimeLockClientConfig config, String namespace);  }