[akka-user] How to configure SBT to run multiple tests

2015-11-13 Thread Ian Phillips
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 {

[akka-user] Re: [akka-http] how does the formFields directive work?

2015-05-27 Thread Ian Phillips
> 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}") >

[akka-user] [akka-http] how does the formFields directive work?

2015-05-26 Thread Ian Phillips
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: (

Re: [akka-user] [2.3.4] Configuring bean without Play.

2014-07-25 Thread Ian Phillips
> > 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

[akka-user] [2.3.4] Configuring bean without Play.

2014-07-25 Thread Ian Phillips
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