Hard to say exactly what you need without more information. What are you trying to compile? Do you know the fully qualified names for these symbols?
Some guesses: - *WS* - Not sure what this is, perhaps it was a renamed import? - *RoutingSpec* - This sounds like test class, probably not something you are going to find in Akka. - *handleWebSocketMessages* - This is defined in *akka.http.scaladsl.server.directives.WebSocketDirectives*. I think this is part of the Routing DSL. Akka Docs Overview <http://akka.io/docs/> says to import "akka-http-experimental" which you already have. Have you read Routing DSL Overview <http://doc.akka.io/docs/akka/2.4.9/scala/http/routing-dsl/overview.html>? This says you need to import: import akka.http.scaladsl.server.Directives._ - *shouldEqual* - This is part of the ScalaTest Matchers DSL. Did you mix in the *Matchers* trait to your test class? FYI: You can always search these things either on GitHub ( https://github.com/akka/akka) or in the ScalaDoc ( http://doc.akka.io/api/akka/2.4.9). Tip: Use the letters up the top right to find functions. Perhaps you can give more information on how you are using these other Symbols to provide some clues to what they could be. Cheers, Jason On Wednesday, 31 August 2016 11:34:35 UTC+12, 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.
