diff --git a/akka-docs-dev/rst/java/http/http-model.rst b/akka-docs-dev/rst/java/http/http-model.rst index 8f08f8577d..61115c28da 100644 --- a/akka-docs-dev/rst/java/http/http-model.rst +++ b/akka-docs-dev/rst/java/http/http-model.rst @@ -136,9 +136,9 @@ The class ``HttpEntities`` contains static methods to create entities from commo You can use the ``isX` methods of ``HttpEntity`` to find out of which subclass an entity is if you want to provide special handling for each of the subtypes. However, in many cases a recipient of an ``HttpEntity`` doesn't care about -of which subtype an entity is (and how data is transported exactly on the HTTP layer). Therefore, a general -``HttpEntity::getDataBytes: Source`` is provided which allows access to the data of an entity regardless -of its concrete subtype. +of which subtype an entity is (and how data is transported exactly on the HTTP layer). Therefore, the general method +``HttpEntity.getDataBytes()`` is provided which returns a ``Source`` that allows access to the data of an +entity regardless of its concrete subtype. .. note:: diff --git a/akka-docs-dev/rst/scala/http/common/http-model.rst b/akka-docs-dev/rst/scala/http/common/http-model.rst index 578f57f39c..4679c7ffac 100644 --- a/akka-docs-dev/rst/scala/http/common/http-model.rst +++ b/akka-docs-dev/rst/scala/http/common/http-model.rst @@ -133,9 +133,9 @@ The ``HttpEntity`` companion object contains several helper constructors to crea You can pattern match over the subtypes of ``HttpEntity`` if you want to provide special handling for each of the subtypes. However, in many cases a recipient of an ``HttpEntity`` doesn't care about of which subtype an entity is -(and how data is transported exactly on the HTTP layer). Therefore, a general -``HttpEntity::dataBytes: Source[ByteString, Any]`` is provided which allows access to the data of an entity regardless -of its concrete subtype. +(and how data is transported exactly on the HTTP layer). Therefore, the general method ``HttpEntity.dataBytes`` is +provided which returns a ``Source[ByteString, Any]`` that allows access to the data of an entity regardless of its +concrete subtype. .. note:: diff --git a/akka-docs-dev/rst/scala/http/routing-dsl/index.rst b/akka-docs-dev/rst/scala/http/routing-dsl/index.rst index fbfb495268..916406e51c 100644 --- a/akka-docs-dev/rst/scala/http/routing-dsl/index.rst +++ b/akka-docs-dev/rst/scala/http/routing-dsl/index.rst @@ -40,7 +40,7 @@ Longer Example The following is an Akka HTTP route definition that tries to show off a few features. The resulting service does not really do anything useful but its definition should give you a feel for what an actual API definition with -the :ref:`http-high-level-server-side-api` will look like: +the Routing DSL will look like: .. includecode2:: ../../code/docs/http/scaladsl/HttpServerExampleSpec.scala :snippet: long-routing-example \ No newline at end of file diff --git a/akka-docs-dev/rst/scala/http/routing-dsl/testkit.rst b/akka-docs-dev/rst/scala/http/routing-dsl/testkit.rst index 9f051a0083..1456c04161 100644 --- a/akka-docs-dev/rst/scala/http/routing-dsl/testkit.rst +++ b/akka-docs-dev/rst/scala/http/routing-dsl/testkit.rst @@ -3,7 +3,7 @@ Route TestKit One of Akka HTTP's design goals is good testability of the created services. For services built with the Routing DSL Akka HTTP provides a dedicated testkit that makes efficient testing of -route logic easy and convenient. This "route test DSL" is made available with the *akka-http-testkit-scala* module. +route logic easy and convenient. This "route test DSL" is made available with the *akka-http-testkit* module. Usage @@ -102,6 +102,6 @@ Examples A great pool of examples are the tests for all the predefined directives in Akka HTTP. They can be found here__. -__ @github@/akka-http-tests-scala/src/test/scala/akka/http/scaladsl/server/directives/ +__ @github@/akka-http-tests/src/test/scala/akka/http/scaladsl/server/directives/ .. _scalatest: http://www.scalatest.org \ No newline at end of file diff --git a/akka-http-core/src/test/scala/akka/http/impl/engine/ws/MessageSpec.scala b/akka-http-core/src/test/scala/akka/http/impl/engine/ws/MessageSpec.scala index c23069af72..2154cb62e9 100644 --- a/akka-http-core/src/test/scala/akka/http/impl/engine/ws/MessageSpec.scala +++ b/akka-http-core/src/test/scala/akka/http/impl/engine/ws/MessageSpec.scala @@ -302,7 +302,7 @@ class MessageSpec extends FreeSpec with Matchers with WithMaterializerSpec { } "for a streamed message don't convert half surrogate pairs naively" in new ServerTestSetup { val gclef = "𝄞" - gclef.size shouldEqual 2 + gclef.length shouldEqual 2 // split up the code point val half1 = gclef.take(1) diff --git a/akka-http-core/src/test/scala/akka/http/impl/engine/ws/WebsocketServerSpec.scala b/akka-http-core/src/test/scala/akka/http/impl/engine/ws/WebsocketServerSpec.scala index d05e6d7cba..5a7a507099 100644 --- a/akka-http-core/src/test/scala/akka/http/impl/engine/ws/WebsocketServerSpec.scala +++ b/akka-http-core/src/test/scala/akka/http/impl/engine/ws/WebsocketServerSpec.scala @@ -37,8 +37,7 @@ class WebsocketServerSpec extends FreeSpec with Matchers with WithMaterializerSp val request = expectRequest val upgrade = request.header[UpgradeToWebsocket] - upgrade.isDefined shouldBe - true + upgrade.isDefined shouldBe true val source = Source(List(1, 2, 3, 4, 5)).map(num ⇒ TextMessage.Strict(s"Message $num")) diff --git a/akka-http-tests/src/test/scala/akka/http/scaladsl/server/directives/WebsocketDirectivesSpec.scala b/akka-http-tests/src/test/scala/akka/http/scaladsl/server/directives/WebsocketDirectivesSpec.scala index ded4bd6077..b5dda7b12a 100644 --- a/akka-http-tests/src/test/scala/akka/http/scaladsl/server/directives/WebsocketDirectivesSpec.scala +++ b/akka-http-tests/src/test/scala/akka/http/scaladsl/server/directives/WebsocketDirectivesSpec.scala @@ -10,7 +10,6 @@ import akka.http.scaladsl.model.headers.{ UpgradeProtocol, Upgrade } import akka.http.scaladsl.model.{ HttpRequest, StatusCodes, HttpResponse } import akka.http.scaladsl.model.ws.{ Message, UpgradeToWebsocket } import akka.http.scaladsl.server.{ Route, RoutingSpec } -import akka.stream.Materializer import akka.stream.scaladsl.Flow class WebsocketDirectivesSpec extends RoutingSpec {