@Test public void otherPropertiesConservedWhenAddingKeyspace() { CassandraKeyValueServiceConfig newConfig = CassandraKeyValueServiceConfigs.copyWithKeyspace( CONFIG_WITHOUT_KEYSPACE, KEYSPACE); assertThat(newConfig.replicationFactor()).isEqualTo(1); assertThat(newConfig.servers()) .isEqualTo(ImmutableDefaultConfig.builder().addAllThriftHosts(SERVERS).build()); }
public static CassandraKeyValueServiceConfig copyWithKeyspace( CassandraKeyValueServiceConfig cassandraConfig, String recommendedKeyspace) { return ImmutableCassandraKeyValueServiceConfig.builder() .from(cassandraConfig) .keyspace(recommendedKeyspace) .build(); }
CassandraKeyValueServiceConfigs { public static CassandraKeyValueServiceConfig copyWithKeyspace( CassandraKeyValueServiceConfig cassandraConfig, String recommendedKeyspace) { return ImmutableCassandraKeyValueServiceConfig.builder() .from(cassandraConfig) .keyspace(recommendedKeyspace) .build(); } }
CassandraKeyValueServiceConfigs { public static CassandraKeyValueServiceConfig copyWithKeyspace( CassandraKeyValueServiceConfig cassandraConfig, String recommendedKeyspace) { return ImmutableCassandraKeyValueServiceConfig.builder() .from(cassandraConfig) .keyspace(recommendedKeyspace) .build(); } private  CassandraKeyValueServiceConfigs(); }
CassandraKeyValueServiceConfigs { public static CassandraKeyValueServiceConfig copyWithKeyspace( CassandraKeyValueServiceConfig cassandraConfig, String recommendedKeyspace) { return ImmutableCassandraKeyValueServiceConfig.builder() .from(cassandraConfig) .keyspace(recommendedKeyspace) .build(); } private  CassandraKeyValueServiceConfigs(); static CassandraKeyValueServiceConfig copyWithKeyspace(
            CassandraKeyValueServiceConfig cassandraConfig,
            String recommendedKeyspace); }
CassandraKeyValueServiceConfigs { public static CassandraKeyValueServiceConfig copyWithKeyspace( CassandraKeyValueServiceConfig cassandraConfig, String recommendedKeyspace) { return ImmutableCassandraKeyValueServiceConfig.builder() .from(cassandraConfig) .keyspace(recommendedKeyspace) .build(); } private  CassandraKeyValueServiceConfigs(); static CassandraKeyValueServiceConfig copyWithKeyspace(
            CassandraKeyValueServiceConfig cassandraConfig,
            String recommendedKeyspace);  }