james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1142466 - in /james/server/trunk: pom.xml pop3server/src/test/java/org/apache/james/pop3server/POP3ServerTest.java
Date Sun, 03 Jul 2011 17:35:08 GMT
Author: norman
Date: Sun Jul  3 17:35:08 2011
New Revision: 1142466

URL: http://svn.apache.org/viewvc?rev=1142466&view=rev
Log:
Upgrade to mailbox 0.3. See JAMES-1288

Modified:
    james/server/trunk/pom.xml
    james/server/trunk/pop3server/src/test/java/org/apache/james/pop3server/POP3ServerTest.java

Modified: james/server/trunk/pom.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/pom.xml?rev=1142466&r1=1142465&r2=1142466&view=diff
==============================================================================
--- james/server/trunk/pom.xml (original)
+++ james/server/trunk/pom.xml Sun Jul  3 17:35:08 2011
@@ -1381,7 +1381,7 @@
     <camel.version>2.5.0</camel.version>
     <activemq.version>5.4.2</activemq.version>
     <spring.version>3.0.5.RELEASE</spring.version>
-    <mailbox.version>0.2</mailbox.version>
+    <mailbox.version>0.3</mailbox.version>
     <imap.version>0.2.1</imap.version>
     <protocols.version>1.5</protocols.version>
     <jsieve.version>0.4</jsieve.version>

Modified: james/server/trunk/pop3server/src/test/java/org/apache/james/pop3server/POP3ServerTest.java
URL: http://svn.apache.org/viewvc/james/server/trunk/pop3server/src/test/java/org/apache/james/pop3server/POP3ServerTest.java?rev=1142466&r1=1142465&r2=1142466&view=diff
==============================================================================
--- james/server/trunk/pop3server/src/test/java/org/apache/james/pop3server/POP3ServerTest.java
(original)
+++ james/server/trunk/pop3server/src/test/java/org/apache/james/pop3server/POP3ServerTest.java
Sun Jul  3 17:35:08 2011
@@ -39,10 +39,9 @@ import org.apache.james.mailbox.MailboxE
 import org.apache.james.mailbox.MailboxPath;
 import org.apache.james.mailbox.MailboxSession;
 import org.apache.james.mailbox.MessageManager;
-import org.apache.james.mailbox.inmemory.InMemoryMailboxManager;
 import org.apache.james.mailbox.inmemory.InMemoryMailboxSessionMapperFactory;
-import org.apache.james.mailbox.inmemory.mail.InMemoryCachingUidProvider;
 import org.apache.james.mailbox.store.Authenticator;
+import org.apache.james.mailbox.store.StoreMailboxManager;
 import org.apache.james.pop3server.netty.POP3Server;
 import org.apache.james.protocols.lib.POP3BeforeSMTPHelper;
 import org.apache.james.protocols.lib.PortUtil;
@@ -60,7 +59,7 @@ public class POP3ServerTest extends Test
     private POP3Client m_pop3Protocol = null;
     protected MockFileSystem fSystem;
     protected MockProtocolHandlerLoader chain;
-    private InMemoryMailboxManager manager;
+    private StoreMailboxManager<Long> manager;
     private byte[] content =        ("Return-path: return@test.com\r\n"+
             "Content-Transfer-Encoding: plain\r\n"+
             "Subject: test\r\n\r\n"+
@@ -112,7 +111,7 @@ public class POP3ServerTest extends Test
 
         InMemoryMailboxSessionMapperFactory factory = new InMemoryMailboxSessionMapperFactory();
 
-        manager = new InMemoryMailboxManager(factory, new Authenticator() {
+        manager = new StoreMailboxManager<Long>(factory, new Authenticator() {
 
             public boolean isAuthentic(String userid, CharSequence passwd) {
                 try {
@@ -123,7 +122,7 @@ public class POP3ServerTest extends Test
                     return false;
                 }
             }
-        }, new InMemoryCachingUidProvider());
+        });
 
         chain.put("mailboxmanager", manager);
 
@@ -144,8 +143,6 @@ public class POP3ServerTest extends Test
             e.printStackTrace();
         }
 
-        manager.deleteEverything();
-        // manager.deleteAll();
         chain.dispose();
 
         m_pop3Server.destroy();



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