diff --git a/management/src/test/java/akka/management/CodeExamples.java b/management/src/test/java/akka/management/CodeExamples.java index b82d2439e..b964a41fa 100644 --- a/management/src/test/java/akka/management/CodeExamples.java +++ b/management/src/test/java/akka/management/CodeExamples.java @@ -25,7 +25,7 @@ public void start() { //#start-akka-management-with-https-context AkkaManagement management = AkkaManagement.get(system); - HttpsConnectionContext https = ConnectionContext.https(sslContext); + HttpsConnectionContext https = ConnectionContext.httpsServer(sslContext); management.start(settings -> settings.withHttpsConnectionContext(https)); //#start-akka-management-with-https-context }