Re: [akka-user] [2.4.6] ClassLoader problem when running tests in SBT

2016-05-30 Thread Akka Team
We use Scalatest, but Specs2 should work fine as well. There is most likely something special in your project setup or tests. For example it could be that you run the tests non-forked and keep a reference to the DefaultLoggingFilter in an object that lives across test runs. -- Johan On Sun, May

Re: [akka-user] [2.4.6] ClassLoader problem when running tests in SBT

2016-05-29 Thread Viktor Klang
We don't use specs2 afaik -- Cheers, √ On May 29, 2016 17:06, "Edmondo Porcu" wrote: > Thanks a lot, how do you test inside akka project itself? > > > > Il giorno domenica 29 maggio 2016 13:20:58 UTC+2, √ ha scritto: >> >> Edmondo, >> >> when you create your ActorSystem you'll have to provide i

Re: [akka-user] [2.4.6] ClassLoader problem when running tests in SBT

2016-05-29 Thread Edmondo Porcu
Thanks a lot, how do you test inside akka project itself? Il giorno domenica 29 maggio 2016 13:20:58 UTC+2, √ ha scritto: > > Edmondo, > > when you create your ActorSystem you'll have to provide it with a stable > ClassLoader. > Ask on the sbt-ML which ClassLoader is preferrable. > > On Sun, Ma

Re: [akka-user] [2.4.6] ClassLoader problem when running tests in SBT

2016-05-29 Thread Viktor Klang
Edmondo, when you create your ActorSystem you'll have to provide it with a stable ClassLoader. Ask on the sbt-ML which ClassLoader is preferrable. On Sun, May 29, 2016 at 12:53 PM, Edmondo Porcu < edmondo.po...@gottexbrokers.com> wrote: > Hello, > > when I try to run my tests from SBT the first

[akka-user] [2.4.6] ClassLoader problem when running tests in SBT

2016-05-29 Thread Edmondo Porcu
Hello, when I try to run my tests from SBT the first time they correctly compile and execute. On the second run, I get the following error: java.lang.ClassCastException: interface akka.event.LoggingFilter is not assignable from class akka.event.DefaultLoggingFilter (ReflectiveDynamicAccess.sc