This commit is contained in:
Andy Wilkinson 2018-03-16 09:57:35 +00:00
parent 87782a2db4
commit 2da4897aa8
2 changed files with 4 additions and 7 deletions

View File

@ -41,10 +41,7 @@ public class EndpointLinksResolver {
* Creates a new {@code EndpointLinksResolver} that will resolve links to the given
* {@code endpoints}.
* @param endpoints the endpoints
* @deprecated since 2.0.1 in favor of
* {@link #EndpointLinksResolver(Collection, String)}
*/
@Deprecated
public EndpointLinksResolver(Collection<? extends ExposableEndpoint<?>> endpoints) {
this.endpoints = endpoints;
}

View File

@ -85,7 +85,7 @@ public class CouchbaseAutoConfigurationTests {
@Test
public void customizeEnvEndpoints() {
testCouchbaseEnv(env -> {
testCouchbaseEnv((env) -> {
assertThat(env.kvEndpoints()).isEqualTo(4);
assertThat(env.queryEndpoints()).isEqualTo(5);
assertThat(env.viewEndpoints()).isEqualTo(6);
@ -96,7 +96,7 @@ public class CouchbaseAutoConfigurationTests {
@Test
public void customizeEnvTimeouts() {
testCouchbaseEnv(env -> {
testCouchbaseEnv((env) -> {
assertThat(env.connectTimeout()).isEqualTo(100);
assertThat(env.kvTimeout()).isEqualTo(200);
assertThat(env.queryTimeout()).isEqualTo(300);
@ -111,7 +111,7 @@ public class CouchbaseAutoConfigurationTests {
@Test
public void enableSslNoEnabledFlag() {
testCouchbaseEnv(env -> {
testCouchbaseEnv((env) -> {
assertThat(env.sslEnabled()).isTrue();
assertThat(env.sslKeystoreFile()).isEqualTo("foo");
assertThat(env.sslKeystorePassword()).isEqualTo("secret");
@ -121,7 +121,7 @@ public class CouchbaseAutoConfigurationTests {
@Test
public void disableSslEvenWithKeyStore() {
testCouchbaseEnv(env -> {
testCouchbaseEnv((env) -> {
assertThat(env.sslEnabled()).isFalse();
assertThat(env.sslKeystoreFile()).isNull();
assertThat(env.sslKeystorePassword()).isNull();