You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
552 B

package controllers.common
import com.alexitc.playsonify.test.PlayAPISpec
import org.slf4j.LoggerFactory
import play.api.mvc.Result
import play.api.test.FakeRequest
import play.api.test.Helpers._
import scala.concurrent.Future
trait MyAPISpec extends PlayAPISpec {
protected val logger = LoggerFactory.getLogger(this.getClass)
override protected def log[T](request: FakeRequest[T], response: Future[Result]): Unit = {
logger.info(s"> REQUEST, $request; < RESPONSE, status = ${status(response)}, body = ${contentAsString(response)}")
}
}