BAEL-1869: Fix List.of
This commit is contained in:
parent
f78edd3569
commit
5a3143b0e4
|
@ -17,11 +17,6 @@ public abstract class ReactiveCouchbaseConfiguration extends AbstractReactiveCou
|
|||
this.couchbaseProperties = couchbaseProperties;
|
||||
}
|
||||
|
||||
@Bean(name = BeanNames.COUCHBASE_INDEX_MANAGER)
|
||||
public IndexManager indexManager() {
|
||||
return new IndexManager(true, true, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<String> getBootstrapHosts() {
|
||||
return couchbaseProperties.getBootstrapHosts();
|
||||
|
|
|
@ -10,7 +10,7 @@ import javax.annotation.PostConstruct;
|
|||
import javax.annotation.PreDestroy;
|
||||
import java.io.IOException;
|
||||
import java.io.UncheckedIOException;
|
||||
import java.util.List;
|
||||
import java.util.Collections;
|
||||
|
||||
@TestConfiguration
|
||||
public class CouchbaseMockConfiguration {
|
||||
|
@ -27,7 +27,7 @@ public class CouchbaseMockConfiguration {
|
|||
bucketConfiguration.password = couchbaseProperties.getBucketPassword();
|
||||
|
||||
try {
|
||||
couchbaseMock = new CouchbaseMock(couchbaseProperties.getPort(), List.of(bucketConfiguration));
|
||||
couchbaseMock = new CouchbaseMock(couchbaseProperties.getPort(), Collections.singletonList(bucketConfiguration));
|
||||
} catch (final IOException ex) {
|
||||
throw new UncheckedIOException(ex);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue