Search in sources :

Example 1 with ColumnFamilyManagerFactory

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);
}
Also used : ColumnFamilyManagerFactory(org.jnosql.diana.api.column.ColumnFamilyManagerFactory) Test(org.junit.jupiter.api.Test)

Example 2 with ColumnFamilyManagerFactory

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);
}
Also used : ColumnFamilyManagerFactory(org.jnosql.diana.api.column.ColumnFamilyManagerFactory) HashMap(java.util.HashMap) Test(org.junit.jupiter.api.Test)

Example 3 with ColumnFamilyManagerFactory

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);
}
Also used : ColumnFamilyManagerFactory(org.jnosql.diana.api.column.ColumnFamilyManagerFactory) Settings(org.jnosql.diana.api.Settings) Test(org.junit.jupiter.api.Test)

Example 4 with ColumnFamilyManagerFactory

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);
}
Also used : ColumnFamilyManagerFactory(org.jnosql.diana.api.column.ColumnFamilyManagerFactory) Test(org.junit.jupiter.api.Test)

Aggregations

ColumnFamilyManagerFactory (org.jnosql.diana.api.column.ColumnFamilyManagerFactory)4 Test (org.junit.jupiter.api.Test)4 HashMap (java.util.HashMap)1 Settings (org.jnosql.diana.api.Settings)1