Hi Harit,
the Java API is feature-complete (as all our Java APIs) - you can do anything 
you might possibly need in plain Java.

The note speaks about the conciseness of the code - we find that tests written 
in Scala are much more readable because of
how we can utilise the language to provide a better DSL for testing. Like 
mentioned already, this is an “API niceness” thing,
both APIs are on-par and support everything you might need.

(See examples here: 
http://doc.akka.io/docs/akka/current/java/testing.html#Asynchronous_Integration_Testing_with_JavaTestKit
 )

Happy hakking!

-- 
Cheers,
Konrad 'ktoso’ Malawski
Akka @ Typesafe

On 23 April 2015 at 06:34:05, Harit Himanshu ([email protected]) 
wrote:

The documentation for Java quotes


Note: Due to the conciseness of test DSLs available for 
Scala(ScalaTest,Specs2,ScalaCheck),it may be a good idea to write the test 
suite in that language even if the main project is written in Java. If that is 
not desirable, you can also use TestKit and friends from Java, albeit with more 
verbose syntax which is covered below. Munish Gupta has published a nice post 
showing several patterns you may find useful. 

Is it still true? I am a Java Developer but very much believe in writing test 
for my code for two reasons
To make sure I understand the behavior of underlying library used
To make sure the business logic behaves as expected

So my question is if TestKit for Java does not have enough support to test 
Actors or Akka Application in general.  

For example, I want to build a application which is supervised and kill one of 
the child and assert Supervisor hears about it and take action as expected.

Am I expecting too much? :) 

Very new to akka and trying to get my head around

Thanks
+ Harit
--
>>>>>>>>>> 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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to