Questions tagged [testkit]
24 questions
1
vote
1 answer
Testing play controller's interaction with an akka actor
My play application uses an akka actor to handle a long running computation:
class MyController(myActor : ActorRef) extends Controller{
def doStuff = Action { implicit request =>
val response : Future[Any] = myActor ? DoStuff
Async{
…

mushroom
- 6,201
- 5
- 36
- 63
0
votes
1 answer
Akka: Test scheduled actors using Testkit
I have a parent actor which creates a child actor and the child actor greets parent every minute as below
class MasterActor extends Actor with ActorLogging {
override def receive: Receive = {
case "Greet" =>
print("Hey…

Steve
- 115
- 1
- 11
0
votes
0 answers
Make a TestProbe to forget all the messgaes
I am writing a code in a test driven way, and after having written many tests, I introduced a new actor, and in my test environment I use a TestProbe for it.
Now in the n-th test, I am testing that the new actor receives a message.
But the message…

marco
- 671
- 6
- 22
0
votes
1 answer
powermockito for private methods in akka actors
I have the following actor
import akka.actor.AbstractActor;
import akka.event.Logging;
import akka.event.LoggingAdapter;
public class MyActor extends AbstractActor {
private final LoggingAdapter log = Logging.getLogger(getContext().getSystem(),…

user_mda
- 18,148
- 27
- 82
- 145
0
votes
1 answer
NSTextAttachment cover the text when use textkit
I want to insert image in UITextView, so I use textkit and NSTextAttachment. But when I insert image, the image display above the content in UITextView, the effect like below:
and the code is like this:
//
// TextKitView.m
// TextKit
//
// …

lixiaoyu
- 378
- 5
- 18
0
votes
1 answer
Akka.NET TestKit synchronous behavior
I have the following C# code to test an AKKA.NET actor's behavior. The statement productActor.Tell(new ChangeActiveStatus(true)); is expected to be a blocking call (TestKit makes it a synchronous call as per this blog) but I'm seeing it returns…

wonderful world
- 10,969
- 20
- 97
- 194
0
votes
1 answer
Scala simple funsuite unit test with akka actors fails
Hey i want to build some small Funsuite test for akka actor application but after combining Testkit with FunSuiteLike i cant call th test anymore.
Somebody an idea why this is happening? is Testkit and funsuite not compatible?
import…

prototyp
- 570
- 6
- 20
0
votes
1 answer
java.lang.NoSuchMethodError with Scala actors
I have a simple Scala application (taken from here) which I want to test. The whole project is compiled successfully with SBT. However, when I launch the tests with sbt test I get the following error message:
Could not run test…

Finnfalter
- 732
- 2
- 7
- 22
0
votes
1 answer
how to use Windows phone store test kit in Windows Phone 7.1
I am developing Windows Phone 7.1 app, and want to test it against marketplace requirements. So I use Marketplace test kit. However, when reading about Windows Phone Store Test Kit, I see that
The Marketplace Test Kit installed with Windows Phone…

onmyway133
- 45,645
- 31
- 257
- 263