CassandraColumnFamilyManagerFactory implements ColumnFamilyManagerFactory { @Override public CassandraColumnFamilyManager get(String database) { return new DefaultCassandraColumnFamilyManager(sessionBuilder.build(), executor, database); } CassandraColumnFamilyManagerFactory(final CqlSessionBuilder sessionBuilder, List<String> queries, Executor executor); @Override CassandraColumnFamilyManager get(String database); @Override void close(); @Override String toString();  }
@Test public void shouldReturnErrorWhenSettingsIsNull() { CassandraConfiguration cassandraConfiguration = new CassandraConfiguration(); assertThrows(NullPointerException.class, () -> { cassandraConfiguration.get(null); }); assertThrows(NullPointerException.class, () -> { cassandraConfiguration.get(null); }); }
@Test public void shouldReturnEntityManager() { ColumnFamilyManager columnEntityManager = subject.get(Constants.KEY_SPACE); assertNotNull(columnEntityManager); }