add java api for websocket testkit #21184

And additionally adds unit test for WebSocketDirectives #20466
This commit is contained in:
Hawstein 2016-09-02 19:28:49 +08:00 committed by Johan Andrén
parent df4a6270e6
commit b9a05aff96
14 changed files with 342 additions and 23 deletions

View file

@ -8,7 +8,7 @@ package docs.circuitbreaker
import scala.concurrent.duration._
import akka.pattern.CircuitBreaker
import akka.pattern.pipe
import akka.actor.{Actor, ActorLogging, ActorRef}
import akka.actor.{ Actor, ActorLogging, ActorRef }
import scala.concurrent.Future
@ -44,7 +44,7 @@ class DangerousActor extends Actor with ActorLogging {
}
class TellPatternActor(recipient : ActorRef) extends Actor with ActorLogging {
class TellPatternActor(recipient: ActorRef) extends Actor with ActorLogging {
import context.dispatcher
val breaker =