I'm after some advice as to best practice when setting up multiple
(ScalaTest) tests in an Akka project, I'm using a base class like so:
class BaseSpec extends TestKit(ActorSystem("application"))
with FlatSpecLike with Matchers with ScalaFutures with ImplicitSender with
BeforeAndAfterAll {
> around here.
>
> val route =
> extractFlowMaterializer { implicit mat =>
> implicit val ec = mat.executionContext
> formFields('color, 'age.as[Int]) { (color, age) =>
> complete(s"The color is '$color' and the age ten years ago was ${age -
> 10}")
>
If I try to follow the example from the documentation it doesn't compile.
val route =
formFields('color, 'age.as[Int]) { (color, age) =>
complete(s"The color is '$color' and the age ten years ago was ${age -
10}")
}
I get the following error:
too many arguments for method formFields: (
>
> Akka has nothing to do with Ebeans, this is definitely not an issue
> related to Akka.
>
Ah sorry, my bad, looking at the stack trace I thought that the There is no
started application error was being thrown by Akka, is that not the case?
Cheers,
Ian.
--
>> Read the docs: ht
Can anybody point me at an example of how to configure Ebean when just
using Akka (i.e. without Play). I'm trying to structure my app into 2
projects: a front end that uses Play/Akka and a back end that is just Akka
based. I can use Ebean as normal from the front end app but when I try to
start