Help with Java tests of Akka code


(Matanster) #1

Hi,

Would anyone be able to point me at some examples of projects with Akka tests written in Java?
I am not getting the @Test annotation recognized by the compiler, and not sure which version of junit to include in my build.sbt so that it’s safe to include along org.scalatest.junit.

More generally, my code at https://stackoverflow.com/questions/50241234/how-to-make-akka-java-test-run-in-sbt doesn’t get picked up for running when I sbt test.

Thanks!!


(Patrik Nordwall) #2

Try with junit version 4.12 and add the Test annotation to the methods that should be run.