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);
}
Aggregations