WS is actually a function from WSTestRequestBuilding, not a type.

Looking at 
http://doc.akka.io/docs/akka/2.4.9/scala/http/routing-dsl/testkit.html#route-testkit
 you 
probably just need to mixin *ScalatestRouteTest* to your test.

On Thursday, 1 September 2016 05:42:44 UTC+12, Dagny T wrote:
>
>
> So, here's what I've found out so far; and could use help to conclude:
>
> A) The complete code from the Documentation code I was looking at is here:
>
> https://github.com/akka/akka/blob/v2.4.9/akka-http-tests/src/test/scala/akka/http/scaladsl/server/directives/WebSocketDirectivesSpec.scala
>
> B) The undefined classes for WS(...) and RoutingSpec(...) are not 
> documented when I enter the names in the SearchBox for Akka 2.4.9 
> Documentation:
>
> http://doc.akka.io/docs/akka/2.4.9/scala/http/routing-dsl/websocket-support.html#routing-support
>
> C) I've just been guessing at the correct build.sbt dependencies; because 
> I'm not able to find a focused one for the Websocket Server sample code on 
> GitHub
>
> D) IntelliJ IDE apparently cannot detect the presence of WS and 
> RoutingSpec classes within the akka 2.4.9 dependencies listed in my 
> build.sbt.
>
> SO, not clear on if the Sample Code is using some stale version of the 
> Akka dependencies!
>
> On Tuesday, August 30, 2016 at 4:34:35 PM UTC-7, Dagny T wrote:
>>
>>
>> I'm trying to find the build.sbt dependencies for testing Akka-Scala APIs.
>>
>> Would anyone be able to tell me the details for a reliable way in general 
>> to track down corresponding Maven Artifacts for undefined symbols with 
>> Scala and Akka?
>>
>> Thus far, I've just been copying build.sbts from pre-built examples; but 
>> now the examples I'm looking at are incomplete with respect to providing 
>> those build.sbt dependencies.
>>
>> Specifically, I'm looking at a WebSockets Server with Scala Test and Akka 
>> Testkit where the following Symbols are not found:
>> - WS
>> - RoutingSpec
>> - handleWebSocketMessages
>> - shouldEqual
>>
>> I've already tried the following in my build.sbt file:
>>
>> "com.typesafe.akka" %% "akka-stream" % "2.4.9",
>> "com.typesafe.akka" %% "akka-http-core" % "2.4.9",
>> "com.typesafe.akka" %% "akka-http-testkit" % "2.4.9",
>> "com.typesafe.akka" %% "akka-stream-testkit" % "2.4.9",
>> // TODO:  find out if below is still needed for routing DSL
>> "com.typesafe.akka" %% "akka-http-experimental" % "2.4.9",
>> "org.scalatest" %% "scalatest" % "3.0.0-SNAP13" % "test",
>>
>>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to