james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1134622 - in /james/imap/trunk/processor/src/test/java/org/apache/james/imap/processor/base: FakeMailboxListenerAdded.java MailboxEventAnalyserTest.java
Date Sat, 11 Jun 2011 13:12:50 GMT
Author: norman
Date: Sat Jun 11 13:12:50 2011
New Revision: 1134622

URL: http://svn.apache.org/viewvc?rev=1134622&view=rev
Log:
Move to 0.3-SNAPSHOT version for mailbox dependency

Modified:
    james/imap/trunk/processor/src/test/java/org/apache/james/imap/processor/base/FakeMailboxListenerAdded.java
    james/imap/trunk/processor/src/test/java/org/apache/james/imap/processor/base/MailboxEventAnalyserTest.java

Modified: james/imap/trunk/processor/src/test/java/org/apache/james/imap/processor/base/FakeMailboxListenerAdded.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/processor/src/test/java/org/apache/james/imap/processor/base/FakeMailboxListenerAdded.java?rev=1134622&r1=1134621&r2=1134622&view=diff
==============================================================================
--- james/imap/trunk/processor/src/test/java/org/apache/james/imap/processor/base/FakeMailboxListenerAdded.java
(original)
+++ james/imap/trunk/processor/src/test/java/org/apache/james/imap/processor/base/FakeMailboxListenerAdded.java
Sat Jun 11 13:12:50 2011
@@ -27,6 +27,7 @@ import javax.mail.Flags;
 import org.apache.james.mailbox.MailboxListener;
 import org.apache.james.mailbox.MailboxPath;
 import org.apache.james.mailbox.MailboxSession;
+import org.apache.james.mailbox.MessageMetaData;
 
 public class FakeMailboxListenerAdded extends MailboxListener.Added {
 
@@ -72,6 +73,11 @@ public class FakeMailboxListenerAdded ex
                 // TODO Auto-generated method stub
                 return null;
             }
+
+            public long getModSeq() {
+                // TODO Auto-generated method stub
+                return 0;
+            }
         };
     }
 

Modified: james/imap/trunk/processor/src/test/java/org/apache/james/imap/processor/base/MailboxEventAnalyserTest.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/processor/src/test/java/org/apache/james/imap/processor/base/MailboxEventAnalyserTest.java?rev=1134622&r1=1134621&r2=1134622&view=diff
==============================================================================
--- james/imap/trunk/processor/src/test/java/org/apache/james/imap/processor/base/MailboxEventAnalyserTest.java
(original)
+++ james/imap/trunk/processor/src/test/java/org/apache/james/imap/processor/base/MailboxEventAnalyserTest.java
Sat Jun 11 13:12:50 2011
@@ -242,7 +242,7 @@ public class MailboxEventAnalyserTest {
         MailboxEventAnalyser analyser = new MailboxEventAnalyser(imapsession, mailboxPath,
new Flags());
         
         final FakeMailboxListenerFlagsUpdate update = new FakeMailboxListenerFlagsUpdate(
-                mSession,  Arrays.asList(90L),  Arrays.asList(new UpdatedFlags(90, new Flags(),
new Flags())), mailboxPath);
+                mSession,  Arrays.asList(90L),  Arrays.asList(new UpdatedFlags(90, -1, new
Flags(), new Flags())), mailboxPath);
         analyser.event(update);
         assertNotNull(analyser.flagUpdateUids());
         assertFalse(analyser.flagUpdateUids().iterator().hasNext());
@@ -259,7 +259,7 @@ public class MailboxEventAnalyserTest {
         
         
         final FakeMailboxListenerFlagsUpdate update = new FakeMailboxListenerFlagsUpdate(
-                mSession, Arrays.asList(uid), Arrays.asList(new UpdatedFlags(uid, new Flags(),
new Flags(Flags.Flag.ANSWERED))), mailboxPath);
+                mSession, Arrays.asList(uid), Arrays.asList(new UpdatedFlags(uid, -1, new
Flags(), new Flags(Flags.Flag.ANSWERED))), mailboxPath);
         analyser.event(update);
         final Iterator<Long> iterator = analyser.flagUpdateUids().iterator();
         assertNotNull(iterator);
@@ -276,7 +276,7 @@ public class MailboxEventAnalyserTest {
         MailboxEventAnalyser analyser = new MailboxEventAnalyser(imapsession, mailboxPath,
new Flags());
         
         final FakeMailboxListenerFlagsUpdate update = new FakeMailboxListenerFlagsUpdate(
-                mSession, Arrays.asList(uid), Arrays.asList(new UpdatedFlags(uid, new Flags(),
new Flags(Flags.Flag.ANSWERED))), mailboxPath);
+                mSession, Arrays.asList(uid), Arrays.asList(new UpdatedFlags(uid, -1, new
Flags(), new Flags(Flags.Flag.ANSWERED))), mailboxPath);
         analyser.event(update);
         analyser.event(update);
         analyser.reset();
@@ -294,7 +294,7 @@ public class MailboxEventAnalyserTest {
         MailboxEventAnalyser analyser = new MailboxEventAnalyser(imapsession, mailboxPath,new
Flags());
         
         final FakeMailboxListenerFlagsUpdate update = new FakeMailboxListenerFlagsUpdate(
-                new MyMailboxSession(BASE_SESSION_ID), Arrays.asList(uid), Arrays.asList(new
UpdatedFlags(uid, new Flags(), new Flags(Flags.Flag.ANSWERED))), mailboxPath);
+                new MyMailboxSession(BASE_SESSION_ID), Arrays.asList(uid), Arrays.asList(new
UpdatedFlags(uid, -1, new Flags(), new Flags(Flags.Flag.ANSWERED))), mailboxPath);
         analyser.event(update);
         analyser.setSilentFlagChanges(true);
         analyser.event(update);
@@ -314,7 +314,7 @@ public class MailboxEventAnalyserTest {
         
         
         final FakeMailboxListenerFlagsUpdate update = new FakeMailboxListenerFlagsUpdate(
-                mSession, Arrays.asList(345L), Arrays.asList(new UpdatedFlags(345, new Flags(),
new Flags())), mailboxPath);
+                mSession, Arrays.asList(345L), Arrays.asList(new UpdatedFlags(345, -1, new
Flags(), new Flags())), mailboxPath);
         analyser.event(update);
         analyser.setSilentFlagChanges(true);
         analyser.event(update);
@@ -331,7 +331,7 @@ public class MailboxEventAnalyserTest {
         
         
         final FakeMailboxListenerFlagsUpdate update = new FakeMailboxListenerFlagsUpdate(
-                mSession, Arrays.asList(886L), Arrays.asList(new UpdatedFlags(886, new Flags(),
new Flags(Flags.Flag.RECENT))), mailboxPath);
+                mSession, Arrays.asList(886L), Arrays.asList(new UpdatedFlags(886, -1, new
Flags(), new Flags(Flags.Flag.RECENT))), mailboxPath);
         analyser.event(update);
         final Iterator<Long> iterator = analyser.flagUpdateUids().iterator();
         assertNotNull(iterator);



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