make available TestKitLight without implicit ActorRef
This commit is contained in:
parent
6b6ec0df72
commit
2852e1a763
2 changed files with 23 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ class TestActor(queue: BlockingDeque[TestActor.Message]) extends Actor with FSM[
|
|||
* @author Roland Kuhn
|
||||
* @since 1.1
|
||||
*/
|
||||
trait TestKit {
|
||||
trait TestKitLight {
|
||||
|
||||
import TestActor.{ Message, RealMessage, NullMessage }
|
||||
|
||||
|
|
@ -99,7 +99,7 @@ trait TestKit {
|
|||
* ActorRef of the test actor. Access is provided to enable e.g.
|
||||
* registration as message target.
|
||||
*/
|
||||
implicit val testActor = actorOf(new TestActor(queue)).start()
|
||||
val testActor = actorOf(new TestActor(queue)).start()
|
||||
|
||||
/**
|
||||
* Implicit sender reference so that replies are possible for messages sent
|
||||
|
|
@ -550,6 +550,10 @@ trait TestKit {
|
|||
private def format(u: TimeUnit, d: Duration) = "%.3f %s".format(d.toUnit(u), u.toString.toLowerCase)
|
||||
}
|
||||
|
||||
trait TestKit extends TestKitLight {
|
||||
implicit val self = testActor
|
||||
}
|
||||
|
||||
/**
|
||||
* TestKit-based probe which allows sending, reception and reply.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue