use of org.jnosql.diana.api.column.ColumnFamilyManagerFactory in project jnosql-diana-driver by eclipse.
the class HBaseColumnFamilyManagerFactoryTest method shouldCreateColumnFamilyManager.
@Test
public void shouldCreateColumnFamilyManager() {
ColumnFamilyManagerFactory managerFactory = configuration.get();
assertNotNull(managerFactory);
}
use of org.jnosql.diana.api.column.ColumnFamilyManagerFactory in project jnosql-diana-driver by eclipse.
the class CassandraConfigurationTest method shoudlCreateDocumentEntityManagerFactory.
@Test
public void shoudlCreateDocumentEntityManagerFactory() {
Map<String, String> configurations = new HashMap<>();
configurations.put("cassandra-hoster-1", "localhost");
configurations.put("cassandra-port", "9142");
CassandraConfiguration cassandraConfiguration = new CassandraConfiguration();
ColumnFamilyManagerFactory entityManagerFactory = cassandraConfiguration.getManagerFactory(configurations);
assertNotNull(entityManagerFactory);
}
use of org.jnosql.diana.api.column.ColumnFamilyManagerFactory in project jnosql-diana-driver by eclipse.
the class CassandraConfigurationTest method shoudlCreateDocumentEntityManagerFactoryFromSettings.
@Test
public void shoudlCreateDocumentEntityManagerFactoryFromSettings() {
Settings settings = Settings.builder().put("cassandra-hoster-1", "localhost").put("cassandra-port", "9142").build();
CassandraConfiguration cassandraConfiguration = new CassandraConfiguration();
ColumnFamilyManagerFactory entityManagerFactory = cassandraConfiguration.get(settings);
assertNotNull(entityManagerFactory);
}
use of org.jnosql.diana.api.column.ColumnFamilyManagerFactory in project jnosql-diana-driver by eclipse.
the class CassandraConfigurationTest method shoudlCreateDocumentEntityManagerFactoryFromFile.
@Test
public void shoudlCreateDocumentEntityManagerFactoryFromFile() {
CassandraConfiguration cassandraConfiguration = new CassandraConfiguration();
ColumnFamilyManagerFactory entityManagerFactory = cassandraConfiguration.get();
assertNotNull(entityManagerFactory);
}
Aggregations