|
Play Framework/Scala example source code file (FakeRequestSpec.scala)
The FakeRequestSpec.scala Play Framework example source codepackage play.test import org.specs2.mutable._ import play.api.libs.json._ /** * */ object FakeRequestSpec extends Specification { "FakeRequest" should { "Not override method in with* methods" in { val req = new FakeRequest("PUT", "/path") .withJsonBody(JsString("blah")) .withRawBody(JsString("blah").toString.toCharArray.map(_.toByte)) .withTextBody(JsString("blah").toString) req.fake.method must be equalTo("PUT") } } } Other Play Framework source code examplesHere is a short list of links related to this Play Framework FakeRequestSpec.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.