Skip to content

Commit

Permalink
Upgrade scala 3
Browse files Browse the repository at this point in the history
  • Loading branch information
larousso committed Oct 14, 2024
1 parent 858f41e commit 5694f7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nio-server/app/models/Permission.scala
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ case class Permission(key: String, label: String, `type`: PermissionType = OptIn
<key>{key}</key>
<label>{label}</label>
<type>{`type`.print}</type>
{validityPeriod.map(p => <validityPeriod>p.toString()</validityPeriod>).getOrElse(new NodeBuffer())}
{validityPeriod.map(p => <validityPeriod>{p.toString}</validityPeriod>).getOrElse(new NodeBuffer())}
</permission>.clean()
}

Expand Down
3 changes: 2 additions & 1 deletion nio-server/test/models/OrganisationSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 5694f7b

Please sign in to comment.