@Test public void canCopyReplacingClient() { TimeLockClientConfig newConfig = TimeLockClientConfigs.copyWithClient(CONFIG_WITH_CLIENT, CLIENT_1); assertThat(newConfig.getClientOrThrow()).isEqualTo(CLIENT_1); }
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);  }