CassandraConfiguration implements ColumnConfiguration { @Override public CassandraColumnFamilyManagerFactory get() { Map<String, String> configuration = ConfigurationReader.from(CASSANDRA_FILE_CONFIGURATION); return getManagerFactory(configuration); }  CassandraColumnFamilyManagerFactory getEntityManagerFactory(CqlSessionBuilder sessionBuilder); @Override CassandraColumnFamilyManagerFactory get(); @Override CassandraColumnFamilyManagerFactory get(Settings settings);  }
@Test public void shouldCreateDocumentEntityManagerFactoryFromSettings() { Settings settings = ManagerFactorySupplier.INSTANCE.getSettings(); CassandraConfiguration cassandraConfiguration = new CassandraConfiguration(); ColumnFamilyManagerFactory entityManagerFactory = cassandraConfiguration.get(settings); assertNotNull(entityManagerFactory); }
@Test public void shouldCreateDocumentEntityManagerFactoryFromFile() { Settings settings = ManagerFactorySupplier.INSTANCE.getSettings(); CassandraConfiguration cassandraConfiguration = new CassandraConfiguration(); ColumnFamilyManagerFactory entityManagerFactory = cassandraConfiguration.get(settings); assertNotNull(entityManagerFactory); }