james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [1/4] james-project git commit: JAMES-1888 No MessageIdMapper implemented for memory
Date Tue, 14 Feb 2017 00:28:45 GMT
Repository: james-project
Updated Branches:
  refs/heads/master 47d29f1a8 -> 3c8cec1de


JAMES-1888 No MessageIdMapper implemented for memory


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/3c8e421b
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/3c8e421b
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/3c8e421b

Branch: refs/heads/master
Commit: 3c8e421b6ba32cbe792c257a080b4e7f7fbe0a68
Parents: 47d29f1
Author: Benoit Tellier <btellier@linagora.com>
Authored: Mon Feb 13 18:48:39 2017 +0700
Committer: Benoit Tellier <btellier@linagora.com>
Committed: Mon Feb 13 18:48:39 2017 +0700

----------------------------------------------------------------------
 mailbox/memory/pom.xml                                       | 5 +++++
 .../james/mailbox/inmemory/mail/InMemoryMapperProvider.java  | 8 ++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/3c8e421b/mailbox/memory/pom.xml
----------------------------------------------------------------------
diff --git a/mailbox/memory/pom.xml b/mailbox/memory/pom.xml
index 98279e0..71ba2cb 100644
--- a/mailbox/memory/pom.xml
+++ b/mailbox/memory/pom.xml
@@ -66,6 +66,11 @@
             <scope>test</scope>
         </dependency>
         <dependency>
+            <groupId>org.apache.james</groupId>
+            <artifactId>james-server-util</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
         </dependency>

http://git-wip-us.apache.org/repos/asf/james-project/blob/3c8e421b/mailbox/memory/src/test/java/org/apache/james/mailbox/inmemory/mail/InMemoryMapperProvider.java
----------------------------------------------------------------------
diff --git a/mailbox/memory/src/test/java/org/apache/james/mailbox/inmemory/mail/InMemoryMapperProvider.java
b/mailbox/memory/src/test/java/org/apache/james/mailbox/inmemory/mail/InMemoryMapperProvider.java
index bc33491..1f2f65a 100644
--- a/mailbox/memory/src/test/java/org/apache/james/mailbox/inmemory/mail/InMemoryMapperProvider.java
+++ b/mailbox/memory/src/test/java/org/apache/james/mailbox/inmemory/mail/InMemoryMapperProvider.java
@@ -94,7 +94,12 @@ public class InMemoryMapperProvider implements MapperProvider {
 
     @Override
     public List<Capabilities> getSupportedCapabilities() {
-        return ImmutableList.copyOf(Capabilities.values());
+        return ImmutableList.of(
+            Capabilities.MESSAGE,
+            Capabilities.MAILBOX,
+            Capabilities.ATTACHMENT,
+            Capabilities.ANNOTATION,
+            Capabilities.MOVE);
     }
 
     @Override
@@ -103,7 +108,6 @@ public class InMemoryMapperProvider implements MapperProvider {
                 .nextModSeq(new MockMailboxSession("user"), mailbox);
     }
 
-
     @Override
     public long highestModSeq(Mailbox mailbox) throws MailboxException {
         return inMemoryMailboxSessionMapperFactory.getModSeqProvider()


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message