Fix failing schema registry test

Spring Boot 3.1 introduced an extra isEnabled method in Ssl class
that causes an ambiguity when used in method references.
Use explicit lambda expression instead.
This commit is contained in:
Soby Chacko
2023-05-01 20:12:31 -04:00
parent 6087af7073
commit 71b9cf1aa7

View File

@@ -26,6 +26,7 @@ import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Optional;
import java.util.function.Predicate;
import java.util.stream.Stream;
import org.apache.avro.Schema.Parser;
@@ -120,7 +121,7 @@ public class SchemaRegistryServerAvroTests {
public void setUp() {
String scheme = Optional.ofNullable(this.serverProperties.getSsl())
.filter(Ssl::isEnabled)
.filter(ssl -> ssl.isEnabled())
.map(ssl -> "https").orElse("http");
Integer port = this.serverProperties.getPort();