Package org.hibernate.ogm.datastore.couchdb.util.impl

Examples of org.hibernate.ogm.datastore.couchdb.util.impl.DatabaseIdentifier


public class DatabaseIdentifierTest {

  @Test
  public void shouldReturnTheCorrectServerUri() throws Exception {
    String expectedServerUri = "http://localhost:5984";
    DatabaseIdentifier databaseIdentifier = new DatabaseIdentifier( "localhost", 5984, "databasename", "", "" );

    assertThat( databaseIdentifier.getServerUri().toString() ).isEqualTo( expectedServerUri );
  }
View Full Code Here


  }

  @Test
  public void shouldReturnTheCorrectDatabaseName() throws Exception {
    String expectedName = "not_important";
    DatabaseIdentifier databaseIdentifier = new DatabaseIdentifier( "localhost", 5984, expectedName, "", "" );

    assertThat( databaseIdentifier.getDatabaseName() ).isEqualTo( expectedName );
  }
View Full Code Here

    return datastore == null;
  }

  private DatabaseIdentifier getDatabase() {
    try {
      return new DatabaseIdentifier(
          configuration.getHost(),
          configuration.getPort(),
          configuration.getDatabaseName(),
          configuration.getUsername(),
          configuration.getPassword()
View Full Code Here

        createDatabase != null ? Boolean.valueOf( createDatabase.toString() ) : false
    );
  }

  private DatabaseIdentifier getDatabaseIdentifier() throws Exception {
    return new DatabaseIdentifier( getDatabaseHost(), getDatabasePort(), getDatabaseName(), getUserName(), getPassword() );
  }
View Full Code Here

  private EntityKey createEntityKey(String tableName, String[] columnNames, Object[] values) {
    return new EntityKey( new EntityKeyMetadata( tableName, columnNames ), values );
  }

  private DatabaseIdentifier getDatabaseIdentifierWithUnavailableHost() throws Exception {
    return new DatabaseIdentifier( "localhost", 1234, "no_existing", getUserName(), getPassword() );
  }
View Full Code Here

    return datastore == null;
  }

  private DatabaseIdentifier getDatabase() {
    try {
      return new DatabaseIdentifier(
          configuration.getHost(),
          configuration.getPort(),
          configuration.getDatabaseName(),
          configuration.getUsername(),
          configuration.getPassword()
View Full Code Here

    return datastore == null;
  }

  private DatabaseIdentifier getDatabase() {
    try {
      return new DatabaseIdentifier(
          configuration.getHost(),
          configuration.getPort(),
          configuration.getDatabaseName(),
          configuration.getUsername(),
          configuration.getPassword()
View Full Code Here

    return datastore == null;
  }

  private DatabaseIdentifier getDatabase() {
    try {
      return new DatabaseIdentifier(
          configuration.getHost(),
          configuration.getPort(),
          configuration.getDatabaseName(),
          configuration.getUsername(),
          configuration.getPassword()
View Full Code Here

    return datastore == null;
  }

  private DatabaseIdentifier getDatabase() {
    try {
      return new DatabaseIdentifier(
          configuration.getHost(),
          configuration.getPort(),
          configuration.getDatabaseName(),
          configuration.getUsername(),
          configuration.getPassword()
View Full Code Here

    return datastore == null;
  }

  private DatabaseIdentifier getDatabase() {
    try {
      return new DatabaseIdentifier(
          configuration.getHost(),
          configuration.getPort(),
          configuration.getDatabaseName(),
          configuration.getUsername(),
          configuration.getPassword()
View Full Code Here

TOP

Related Classes of org.hibernate.ogm.datastore.couchdb.util.impl.DatabaseIdentifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.