From bce313af1b6f76a04a8464840702d11c5cd6da33 Mon Sep 17 00:00:00 2001 From: Lukas Krecan <lukas@krecan.net> Date: Tue, 16 Aug 2022 19:43:28 +0200 Subject: [PATCH] Cleanup --- .../couchbase/shedlock-provider-couchbase-javaclient3/pom.xml | 2 +- .../javaclient3/CouchbaseLockProviderIntegrationTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/providers/couchbase/shedlock-provider-couchbase-javaclient3/pom.xml b/providers/couchbase/shedlock-provider-couchbase-javaclient3/pom.xml index 8ba6622d3..8f0d120e0 100644 --- a/providers/couchbase/shedlock-provider-couchbase-javaclient3/pom.xml +++ b/providers/couchbase/shedlock-provider-couchbase-javaclient3/pom.xml @@ -28,7 +28,7 @@ <dependency> <groupId>com.couchbase.client</groupId> <artifactId>java-client</artifactId> - <version>3.0.5</version> + <version>3.3.1</version> </dependency> <dependency> diff --git a/providers/couchbase/shedlock-provider-couchbase-javaclient3/src/test/java/net/javacrumbs/shedlock/provider/couchbase/javaclient3/CouchbaseLockProviderIntegrationTest.java b/providers/couchbase/shedlock-provider-couchbase-javaclient3/src/test/java/net/javacrumbs/shedlock/provider/couchbase/javaclient3/CouchbaseLockProviderIntegrationTest.java index 4a8e36075..97df62eaf 100644 --- a/providers/couchbase/shedlock-provider-couchbase-javaclient3/src/test/java/net/javacrumbs/shedlock/provider/couchbase/javaclient3/CouchbaseLockProviderIntegrationTest.java +++ b/providers/couchbase/shedlock-provider-couchbase-javaclient3/src/test/java/net/javacrumbs/shedlock/provider/couchbase/javaclient3/CouchbaseLockProviderIntegrationTest.java @@ -32,12 +32,12 @@ import org.testcontainers.couchbase.CouchbaseContainer; import java.time.Duration; -import java.util.Arrays; import java.util.HashSet; import java.util.Optional; import java.util.Set; import static java.time.Instant.parse; +import static java.util.Collections.singletonList; import static net.javacrumbs.shedlock.core.ClockProvider.now; import static net.javacrumbs.shedlock.provider.couchbase.javaclient3.CouchbaseLockProvider.LOCKED_AT; import static net.javacrumbs.shedlock.provider.couchbase.javaclient3.CouchbaseLockProvider.LOCKED_BY; @@ -59,7 +59,7 @@ public static void startCouchbase () { container = new CouchbaseContainer().withBucket(new BucketDefinition(BUCKET_NAME)); container.start(); - Set<SeedNode> seedNodes = new HashSet<>(Arrays.asList( + Set<SeedNode> seedNodes = new HashSet<>(singletonList( SeedNode.create(container.getContainerIpAddress(), Optional.of(container.getBootstrapCarrierDirectPort()), Optional.of(container.getBootstrapHttpDirectPort()))));