Search in sources :

Example 1 with DefaultCouchbaseEnvironment

use of com.couchbase.client.java.env.DefaultCouchbaseEnvironment in project spring-boot by spring-projects.

the class CouchbaseAutoConfigurationTests method customizeEnvEndpoints.

@Test
public void customizeEnvEndpoints() throws Exception {
    DefaultCouchbaseEnvironment env = customizeEnv("spring.couchbase.env.endpoints.keyValue=4", "spring.couchbase.env.endpoints.query=5", "spring.couchbase.env.endpoints.view=6");
    assertThat(env.kvEndpoints()).isEqualTo(4);
    assertThat(env.queryEndpoints()).isEqualTo(5);
    assertThat(env.viewEndpoints()).isEqualTo(6);
}
Also used : DefaultCouchbaseEnvironment(com.couchbase.client.java.env.DefaultCouchbaseEnvironment) Test(org.junit.Test)

Aggregations

DefaultCouchbaseEnvironment (com.couchbase.client.java.env.DefaultCouchbaseEnvironment)1 Test (org.junit.Test)1