import org.scalatest.fixture.Suite.OneArgTest
class PingPongActorSpec extends TestKit(ActorSystem("PingPongActorSpec"))
with ImplicitSender with FlatSpecLike with Matchers with BeforeAndAfterAll {
override def withFixture(test: OneArgTest) = {}
}
When I am trying to override withFixture method with test of type 'OneArgTest' the compiler is giving me following error messages:
Instead of mixing in trait "FlatSpecLike":
class PingPongActorSpec extends TestKit(ActorSystem("PingPongActorSpec"))
with ImplicitSender with FlatSpecLike with Matchers with BeforeAndAfterAll {
override def withFixture(test: OneArgTest) = {}
}
We need to mix trait "fixture.FlatSpecLike":
class PingPongActorSpec extends TestKit(ActorSystem("PingPongActorSpec"))
with ImplicitSender with fixture.FlatSpecLike with Matchers with BeforeAndAfterAll
override def withFixture(test: OneArgTest) = {}
}
This resolve the issue.