Is it possible to run akka-http-testkit using Specs2RouteTes via JUnit?

I have tried in ScalaIDE using scala 2.11 and spec2 version 3.8.6, 
akka-http versions 10.0.5 


import org.specs2.mutable.SpecificationWithJUnit

import akka.http.scaladsl.testkit.Specs2RouteTest

class TestSpec2Test extends SpecificationWithJUnit  
  with Specs2RouteTest { 
  implicit def actorRefFactory = system 
  println("aaa") 
  "The service" should { 
    "a" in { 
      1 should beEqualTo(1) 
    } 
  } 
}


When running as junit test there is no console output and junit tests are 
not run with no show of errors.


If I comment out 'Specs2RouteTest' and 'implicit def actorRef...' the code 
runs as expected.

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

Reply via email to