james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rouaz...@apache.org
Subject [6/7] james-project git commit: MAILBOX-279: JPAMappersTest should not run tests on MessageMove
Date Wed, 07 Dec 2016 09:12:48 GMT
MAILBOX-279: JPAMappersTest should not run tests on MessageMove


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

Branch: refs/heads/master
Commit: bcd636761e2ad1d8d02073cb3b305f1eede6eb44
Parents: c8b8cf3
Author: Quynh Nguyen <qnguyen@linagora.com>
Authored: Fri Dec 2 11:27:18 2016 +0700
Committer: Quynh Nguyen <qnguyen@linagora.com>
Committed: Wed Dec 7 14:51:27 2016 +0700

----------------------------------------------------------------------
 .../java/org/apache/james/mailbox/jpa/mail/JPAMapperProvider.java | 2 +-
 .../org/apache/james/mailbox/store/mail/model/MapperProvider.java | 3 ++-
 .../apache/james/mailbox/store/mail/model/MessageMoveTest.java    | 1 +
 3 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/bcd63676/mailbox/jpa/src/test/java/org/apache/james/mailbox/jpa/mail/JPAMapperProvider.java
----------------------------------------------------------------------
diff --git a/mailbox/jpa/src/test/java/org/apache/james/mailbox/jpa/mail/JPAMapperProvider.java
b/mailbox/jpa/src/test/java/org/apache/james/mailbox/jpa/mail/JPAMapperProvider.java
index 62cb25b..fcffad6 100644
--- a/mailbox/jpa/src/test/java/org/apache/james/mailbox/jpa/mail/JPAMapperProvider.java
+++ b/mailbox/jpa/src/test/java/org/apache/james/mailbox/jpa/mail/JPAMapperProvider.java
@@ -124,6 +124,6 @@ public class JPAMapperProvider implements MapperProvider {
 
     @Override
     public List<Capabilities> getNotImplemented() {
-        return ImmutableList.of(Capabilities.MESSAGE, Capabilities.ATTACHMENT);
+        return ImmutableList.of(Capabilities.MESSAGE, Capabilities.ATTACHMENT, Capabilities.MOVE);
     }
 }

http://git-wip-us.apache.org/repos/asf/james-project/blob/bcd63676/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MapperProvider.java
----------------------------------------------------------------------
diff --git a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MapperProvider.java
b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MapperProvider.java
index 296671c..636c68d 100644
--- a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MapperProvider.java
+++ b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MapperProvider.java
@@ -34,7 +34,8 @@ public interface MapperProvider {
         MESSAGE,
         MAILBOX,
         ATTACHMENT,
-        ANNOTATION
+        ANNOTATION,
+        MOVE
     }
 
     List<Capabilities> getNotImplemented();

http://git-wip-us.apache.org/repos/asf/james-project/blob/bcd63676/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MessageMoveTest.java
----------------------------------------------------------------------
diff --git a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MessageMoveTest.java
b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MessageMoveTest.java
index 502b7d1..d7f583a 100644
--- a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MessageMoveTest.java
+++ b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MessageMoveTest.java
@@ -70,6 +70,7 @@ public class MessageMoveTest<T extends MapperProvider> {
         this.producer = producer;
         this.mapperProvider = producer.newInstance();
         this.mapperProvider.ensureMapperPrepared();
+        Assume.assumeFalse(mapperProvider.getNotImplemented().contains(MapperProvider.Capabilities.MOVE));
         this.messageMapper = mapperProvider.createMessageMapper();
         Assume.assumeNotNull(messageMapper);
 


---------------------------------------------------------------------
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