Skip to content

Commit

Permalink
Fix code format
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospereira committed Sep 13, 2019
1 parent a7f38c4 commit 0b0b214
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
Expand Up @@ -24,7 +24,7 @@ public class RepeatableBackwardCompatibilityController extends MockController {

@SomeActionAnnotation({ // -> defines @With and therefore is NOT seen as container annotation
@SomeRepeatable, // -> is defined @Repeatable and also has @With so this could be an actual
// action annotation that could run
// action annotation that could run
@SomeRepeatable
})
public Result action(Http.Request request) {
Expand Down
Expand Up @@ -365,7 +365,9 @@ class MultipartFormDataParserSpec extends PlaySpecification with WsTestClient {

"parse extended filename in content disposition" in {
val result = FileInfoMatcher.unapply(
Map("content-disposition" -> """form-data; name=document; filename=hello.txt; filename*=utf-8''%E4%BD%A0%E5%A5%BD.txt""")
Map(
"content-disposition" -> """form-data; name=document; filename=hello.txt; filename*=utf-8''%E4%BD%A0%E5%A5%BD.txt"""
)
)
result must not(beEmpty)
result.get must equalTo(("document", "你好.txt", None, "form-data"))
Expand Down
Expand Up @@ -13,9 +13,9 @@ class LangSpec extends PlaySpecification {
"lang spec" should {
"allow selecting preferred language" in {
val esEs = Lang("es-ES")
val es = Lang("es")
val es = Lang("es")
val deDe = Lang("de-DE")
val de = Lang("de")
val de = Lang("de")
val enUs = Lang("en-US")

implicit val app =
Expand Down Expand Up @@ -86,11 +86,11 @@ class LangSpec extends PlaySpecification {

"preferred language" in {
val crhUA = Lang("crh-UA")
val crh = Lang("crh")
val ber = Lang("ber")
val crh = Lang("crh")
val ber = Lang("ber")
val berDZ = Lang("ber-DZ")
val astES = Lang("ast-ES")
val ast = Lang("ast")
val ast = Lang("ast")

implicit val app =
GuiceApplicationBuilder()
Expand Down Expand Up @@ -132,18 +132,17 @@ class LangSpec extends PlaySpecification {
}

"preferred language" in {
val enUS = Lang("en-US")
val az = Lang("az")
val enUS = Lang("en-US")
val az = Lang("az")
val azCyrl = Lang("az-Cyrl")
val azLatn = Lang("az-Latn")
val zh = Lang("zh")
val zh = Lang("zh")
val zhHans = Lang("zh-Hans")
val zhHant = Lang("zh-Hant")

implicit val app =
GuiceApplicationBuilder()
.configure(
"play.i18n.langs" -> Seq(zhHans, zh, azCyrl, enUS).map(_.code))
.configure("play.i18n.langs" -> Seq(zhHans, zh, azCyrl, enUS).map(_.code))
.build()
val langs = app.injector.instanceOf[Langs]

Expand Down

0 comments on commit 0b0b214

Please sign in to comment.