BAEL-1869: Fix List.of

This commit is contained in:
Lukasz Rys 2019-09-01 21:46:14 +02:00
parent f78edd3569
commit 5a3143b0e4
2 changed files with 2 additions and 7 deletions

View File

@ -17,11 +17,6 @@ public abstract class ReactiveCouchbaseConfiguration extends AbstractReactiveCou
this.couchbaseProperties = couchbaseProperties; this.couchbaseProperties = couchbaseProperties;
} }
@Bean(name = BeanNames.COUCHBASE_INDEX_MANAGER)
public IndexManager indexManager() {
return new IndexManager(true, true, false);
}
@Override @Override
protected List<String> getBootstrapHosts() { protected List<String> getBootstrapHosts() {
return couchbaseProperties.getBootstrapHosts(); return couchbaseProperties.getBootstrapHosts();

View File

@ -10,7 +10,7 @@ import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy; import javax.annotation.PreDestroy;
import java.io.IOException; import java.io.IOException;
import java.io.UncheckedIOException; import java.io.UncheckedIOException;
import java.util.List; import java.util.Collections;
@TestConfiguration @TestConfiguration
public class CouchbaseMockConfiguration { public class CouchbaseMockConfiguration {
@ -27,7 +27,7 @@ public class CouchbaseMockConfiguration {
bucketConfiguration.password = couchbaseProperties.getBucketPassword(); bucketConfiguration.password = couchbaseProperties.getBucketPassword();
try { try {
couchbaseMock = new CouchbaseMock(couchbaseProperties.getPort(), List.of(bucketConfiguration)); couchbaseMock = new CouchbaseMock(couchbaseProperties.getPort(), Collections.singletonList(bucketConfiguration));
} catch (final IOException ex) { } catch (final IOException ex) {
throw new UncheckedIOException(ex); throw new UncheckedIOException(ex);
} }