You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2020/09/03 03:23:52 UTC
[james-project] 10/13: JAMES-3365 Move Properties into their own
model class
This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit c72e06e88051721623997cbbac557c33d23571ab
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Tue Sep 1 10:54:49 2020 +0700
JAMES-3365 Move Properties into their own model class
---
.../scala/org/apache/james/jmap/mail/VacationResponseGet.scala | 2 +-
.../james/jmap/json/VacationResponseGetSerializationTest.scala | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/mail/VacationResponseGet.scala b/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/mail/VacationResponseGet.scala
index aab61d0..4329c84 100644
--- a/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/mail/VacationResponseGet.scala
+++ b/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/mail/VacationResponseGet.scala
@@ -20,8 +20,8 @@
package org.apache.james.jmap.mail
import org.apache.james.jmap.mail.VacationResponse.UnparsedVacationResponseId
-import org.apache.james.jmap.model.AccountId
import org.apache.james.jmap.model.State.State
+import org.apache.james.jmap.model.{AccountId, Properties}
case class VacationResponseIds(value: List[UnparsedVacationResponseId])
diff --git a/server/protocols/jmap-rfc-8621/src/test/scala/org/apache/james/jmap/json/VacationResponseGetSerializationTest.scala b/server/protocols/jmap-rfc-8621/src/test/scala/org/apache/james/jmap/json/VacationResponseGetSerializationTest.scala
index c02abee..d0704e8 100644
--- a/server/protocols/jmap-rfc-8621/src/test/scala/org/apache/james/jmap/json/VacationResponseGetSerializationTest.scala
+++ b/server/protocols/jmap-rfc-8621/src/test/scala/org/apache/james/jmap/json/VacationResponseGetSerializationTest.scala
@@ -25,8 +25,8 @@ import org.apache.james.jmap.json.Fixture.id
import org.apache.james.jmap.json.VacationResponseGetSerializationTest.{ACCOUNT_ID, PROPERTIES, SERIALIZER, SINGLETON_ID}
import org.apache.james.jmap.json.VacationResponseSerializationTest.VACATION_RESPONSE
import org.apache.james.jmap.mail.VacationResponse.UnparsedVacationResponseId
-import org.apache.james.jmap.mail.{Properties, VacationResponseGetRequest, VacationResponseGetResponse, VacationResponseIds, VacationResponseNotFound}
-import org.apache.james.jmap.model.AccountId
+import org.apache.james.jmap.mail.{VacationResponseGetRequest, VacationResponseGetResponse, VacationResponseIds, VacationResponseNotFound}
+import org.apache.james.jmap.model.{AccountId, Properties}
import org.apache.james.mailbox.model.{MailboxId, TestId}
import org.scalatest.matchers.should.Matchers
import org.scalatest.wordspec.AnyWordSpec
@@ -39,7 +39,7 @@ object VacationResponseGetSerializationTest {
private val ACCOUNT_ID: AccountId = AccountId(id)
private val SINGLETON_ID: UnparsedVacationResponseId = "singleton"
- private val PROPERTIES: Properties = Properties(List("isEnabled", "fromDate"))
+ private val PROPERTIES: Properties = Properties(Set("isEnabled", "fromDate"))
}
class VacationResponseGetSerializationTest extends AnyWordSpec with Matchers {
@@ -94,7 +94,7 @@ class VacationResponseGetSerializationTest extends AnyWordSpec with Matchers {
val expectedRequestObject = VacationResponseGetRequest(
accountId = ACCOUNT_ID,
ids = Some(VacationResponseIds(List(SINGLETON_ID))),
- properties = Some(Properties(Nil)))
+ properties = Some(Properties(Set())))
SERIALIZER.deserializeVacationResponseGetRequest(
"""
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org