Executable software specification tool that specifies behaviour both at the class and application level using Scala.
I'd like to test a method that returns a Future. My attempts were as follows: import org.specs2.mutable.Specification …
scala specs2I want to create few specifications that interoperate with database. class DocumentSpec extends mutable.Specification with BeforeAfterExample { sequential def before() = {…
scala specs2I have a specs2 test which uses a FakeApplication and an embedded mongodb database. def inMemoryMongoDatabase(name: String = "default"): Map[…
scala mongodb playframework-2.0 specs2I externalized some strings to HOCON, on application.conf. I'm accessing the configuration values like this: import play.api.Play.…
configuration playframework-2.0 specs2I'm working in a setup that has an embedded elastic search instance for unit testing purposes, but when I run …
elasticsearch specs2I am trying to learn the unit tests in Play scala, but I am running into some issues. I am …
unit-testing scala playframework-2.0 specs2By default all Logger output, visible when an application is running, is mute when the application is tested. How to …
scala playframework playframework-2.0 specs2I have a test along these lines: httpClient.post(anyString, anyString) returns (first, second) //do my thing there were two(…
scala mockito specs2I need to put one of my test cases into a "pending" state. I would like to assing some sort …
scala testing specs2I have the following action def save() = Action(parse.json) { implicit request => request.body.asOpt[IdeaType].map { ideatype => …
scala testing playframework-2.0 specs2