@Test void buildShouldThrowWhenSameValues() { assertThatThrownBy(() -> KeyspacesConfiguration.builder() .keyspace("keyspace") .cacheKeyspace("keyspace") .build()) .isInstanceOf(IllegalStateException.class); }
public static Builder builder() { return new Builder(); }
KeyspacesConfiguration { public static Builder builder() { return new Builder(); } }
KeyspacesConfiguration { public static Builder builder() { return new Builder(); } KeyspacesConfiguration(String keyspace, String cacheKeyspace, int replicationFactor, boolean durableWrites); }
KeyspacesConfiguration { public static Builder builder() { return new Builder(); } KeyspacesConfiguration(String keyspace, String cacheKeyspace, int replicationFactor, boolean durableWrites); static Builder builder(); static KeyspacesConfiguration from(Configuration configuration); KeyspaceConfiguration mainKeyspaceConfiguration(); KeyspaceConfiguration cacheKeyspaceConfiguration(); @Override final boolean equals(Object o); @Override final int hashCode(); }
KeyspacesConfiguration { public static Builder builder() { return new Builder(); } KeyspacesConfiguration(String keyspace, String cacheKeyspace, int replicationFactor, boolean durableWrites); static Builder builder(); static KeyspacesConfiguration from(Configuration configuration); KeyspaceConfiguration mainKeyspaceConfiguration(); KeyspaceConfiguration cacheKeyspaceConfiguration(); @Override final boolean equals(Object o); @Override final int hashCode(); static final String CASSANDRA_KEYSPACE; static final String CASSANDRA_CACHE_KEYSPACE; static final String REPLICATION_FACTOR; }