From 5694f7b403cfa04699d5b3ebe51c5d254825a161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Del=C3=A8gue?= Date: Mon, 14 Oct 2024 11:38:24 +0200 Subject: [PATCH] Upgrade scala 3 --- nio-server/app/models/Permission.scala | 2 +- nio-server/test/models/OrganisationSpec.scala | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nio-server/app/models/Permission.scala b/nio-server/app/models/Permission.scala index 9dc7547..6c74c7a 100644 --- a/nio-server/app/models/Permission.scala +++ b/nio-server/app/models/Permission.scala @@ -68,7 +68,7 @@ case class Permission(key: String, label: String, `type`: PermissionType = OptIn {key} {`type`.print} - {validityPeriod.map(p => p.toString()).getOrElse(new NodeBuffer())} + {validityPeriod.map(p => {p.toString}).getOrElse(new NodeBuffer())} .clean() } diff --git a/nio-server/test/models/OrganisationSpec.scala b/nio-server/test/models/OrganisationSpec.scala index 8da2696..5cd1caa 100644 --- a/nio-server/test/models/OrganisationSpec.scala +++ b/nio-server/test/models/OrganisationSpec.scala @@ -219,9 +219,10 @@ class OrganisationSpec extends PlaySpec with AnyWordSpecLike { ) val xml = org.asXml() - + println(xml) val fromXml = Organisation.fromXml(xml) + println(fromXml) fromXml.map(_.key) mustBe Right(org.key) }