james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r592518 - in /james/server/trunk: experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/ experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/ imap-api/src/main/java/org/a...
Date Tue, 06 Nov 2007 18:47:06 GMT
Author: rdonkin
Date: Tue Nov  6 10:47:04 2007
New Revision: 592518

URL: http://svn.apache.org/viewvc?rev=592518&view=rev
Log:
More functional tests.

Added:
    james/server/trunk/phoenix-deployment/src/test/org/apache/james/experimental/imapserver/ExperimentalNonAuthenticatedStateTest.java
    james/server/trunk/phoenix-deployment/src/test/org/apache/james/experimental/imapserver/ExperimentalSelectedInboxTest.java
Modified:
    james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/AbstractTestSelectedInbox.java
    james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/AppendExamineInbox.test
    james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/Authenticate.test
    james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/Login.test
    james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/SelectAppend.test
    james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/SelectInbox.test
    james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/ValidAuthenticated.test
    james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/ValidSelected.test
    james/server/trunk/imap-api/src/main/java/org/apache/james/api/imap/display/HumanReadableTextKey.java
    james/server/trunk/imap-mailbox-processor-function/src/main/java/org/apache/james/imapserver/processor/base/AbstractImapRequestProcessor.java
    james/server/trunk/imap-mailbox-processor-function/src/main/java/org/apache/james/imapserver/processor/imap4rev1/LoginProcessor.java
    james/server/trunk/phoenix-deployment/src/test/org/apache/james/experimental/imapserver/ExperimentalAuthenticatedStateTest.java

Modified: james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/AbstractTestSelectedInbox.java
URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/AbstractTestSelectedInbox.java?rev=592518&r1=592517&r2=592518&view=diff
==============================================================================
--- james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/AbstractTestSelectedInbox.java
(original)
+++ james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/AbstractTestSelectedInbox.java
Tue Nov  6 10:47:04 2007
@@ -120,8 +120,8 @@
         scriptTest("ListMailboxes", Locale.ITALY);
     }
     
-    public void testStatITALYITALY() throws Exception {
-        scriptTest("StatITALY", Locale.ITALY);
+    public void testStatusITALY() throws Exception {
+        scriptTest("Status", Locale.ITALY);
     }
     
     public void testStringArgsITALY() throws Exception {
@@ -177,8 +177,8 @@
         scriptTest("ListMailboxes", Locale.KOREA);
     }
     
-    public void testStatKOREAKOREA() throws Exception {
-        scriptTest("StatKOREA", Locale.KOREA);
+    public void testStatusKOREA() throws Exception {
+        scriptTest("Status", Locale.KOREA);
     }
     
     public void testStringArgsKOREA() throws Exception {

Modified: james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/AppendExamineInbox.test
URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/AppendExamineInbox.test?rev=592518&r1=592517&r2=592518&view=diff
==============================================================================
--- james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/AppendExamineInbox.test
(original)
+++ james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/AppendExamineInbox.test
Tue Nov  6 10:47:04 2007
@@ -67,4 +67,4 @@
 S: a OK RENAME completed.
 
 C: a DELETE tobedeleted
-S: OK DELETE completed.
\ No newline at end of file
+S: a OK DELETE completed.
\ No newline at end of file

Modified: james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/Authenticate.test
URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/Authenticate.test?rev=592518&r1=592517&r2=592518&view=diff
==============================================================================
--- james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/Authenticate.test
(original)
+++ james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/Authenticate.test
Tue Nov  6 10:47:04 2007
@@ -24,4 +24,4 @@
 S: abcd BAD Missing argument. Command should be '<tag> AUTHENTICATE <auth_type>
\*\(CRLF base64\)'
 
 C: abcd AUTHENTICATE KERBEROS_V4 extra
-S: abcd BAD Expected end-of-line, found more characters. Command should be '<tag> AUTHENTICATE
<auth_type> \*\(CRLF base64\)'
+S: abcd BAD Expected end-of-line, found 'e'. Command should be '<tag> AUTHENTICATE
<auth_type> \*\(CRLF base64\)'

Modified: james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/Login.test
URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/Login.test?rev=592518&r1=592517&r2=592518&view=diff
==============================================================================
--- james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/Login.test
(original)
+++ james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/Login.test
Tue Nov  6 10:47:04 2007
@@ -27,10 +27,10 @@
 S: a002a BAD Expected end-of-line, found 'e'. Command should be '<tag> LOGIN <userid>
<password>'
 
 C: a003 LOGIN invaliduser password
-S: a003 NO LOGIN failed
+S: a003 NO LOGIN failed. Invalid login/password.
 
 C: a004 LOGIN imapuser invalid
-S: a004 NO LOGIN failed
+S: a004 NO LOGIN failed. Invalid login/password.
 
 C: a005 LOGIN imapuser password
-S: a005 OK LOGIN completed
\ No newline at end of file
+S: a005 OK LOGIN completed.
\ No newline at end of file

Modified: james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/SelectAppend.test
URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/SelectAppend.test?rev=592518&r1=592517&r2=592518&view=diff
==============================================================================
--- james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/SelectAppend.test
(original)
+++ james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/SelectAppend.test
Tue Nov  6 10:47:04 2007
@@ -60,6 +60,9 @@
 C:
 S: \* 2 EXISTS
 S: \* 1 RECENT
+# 
+# TODO: FIX ME! The current backend delivers spurious events! 
+S: \* 1 FETCH \(FLAGS \(\)\)
 S: A003 OK APPEND completed.
 
 C: a1 DELETE selectappend

Modified: james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/SelectInbox.test
URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/SelectInbox.test?rev=592518&r1=592517&r2=592518&view=diff
==============================================================================
--- james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/SelectInbox.test
(original)
+++ james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/SelectInbox.test
Tue Nov  6 10:47:04 2007
@@ -23,4 +23,4 @@
 S: \* OK \[UIDVALIDITY \d+\]
 S: (\* OK \[UNSEEN 1\] Message 1 is the first unseen)|(\* OK No messages unseen)
 S: \* OK \[PERMANENTFLAGS \(\\Answered \\Deleted \\Draft \\Flagged \\Seen\)\]
-S: abcd OK \[READ-WRITE\] SELECT completed
+S: abcd OK \[READ-WRITE\] SELECT completed.

Modified: james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/ValidAuthenticated.test
URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/ValidAuthenticated.test?rev=592518&r1=592517&r2=592518&view=diff
==============================================================================
--- james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/ValidAuthenticated.test
(original)
+++ james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/ValidAuthenticated.test
Tue Nov  6 10:47:04 2007
@@ -18,25 +18,26 @@
 ################################################################
 # Commands not valid in NONAUTHENTICATED state
 # Valid in authenticated or selected only
-C: a001 SELECT
-S: a001 NO SELECT failed. Command not valid in this state
-C: a001 EXAMINE
-S: a001 NO EXAMINE failed. Command not valid in this state
-C: a001 CREATE
-S: a001 NO CREATE failed. Command not valid in this state
-C: a001 DELETE
-S: a001 NO DELETE failed. Command not valid in this state
-C: a001 RENAME
-S: a001 NO RENAME failed. Command not valid in this state
-C: a001 SUBSCRIBE
-S: a001 NO SUBSCRIBE failed. Command not valid in this state
-C: a001 UNSUBSCRIBE
-S: a001 NO UNSUBSCRIBE failed. Command not valid in this state
-C: a001 LIST
-S: a001 NO LIST failed. Command not valid in this state
-C: a001 LSUB
-S: a001 NO LSUB failed. Command not valid in this state
-C: a001 STATUS
-S: a001 NO STATUS failed. Command not valid in this state
-C: a001 APPEND
-S: a001 NO APPEND failed. Command not valid in this state
+C: a001 SELECT mailbox
+S: a001 NO SELECT failed. Command not valid in this state.
+C: a001 EXAMINE mailbox
+S: a001 NO EXAMINE failed. Command not valid in this state.
+C: a001 CREATE mailbox
+S: a001 NO CREATE failed. Command not valid in this state.
+C: a001 DELETE mailbox
+S: a001 NO DELETE failed. Command not valid in this state.
+C: a001 RENAME oldname newname
+S: a001 NO RENAME failed. Command not valid in this state.
+C: a001 SUBSCRIBE mailbox
+S: a001 NO SUBSCRIBE failed. Command not valid in this state.
+C: a001 UNSUBSCRIBE mailbox
+S: a001 NO UNSUBSCRIBE failed. Command not valid in this state.
+C: a001 LIST "" ""
+S: a001 NO LIST failed. Command not valid in this state.
+C: a001 LSUB "" ""
+S: a001 NO LSUB failed. Command not valid in this state.
+C: a001 STATUS mailbox (UIDNEXT)
+S: a001 NO STATUS failed. Command not valid in this state.
+C: a001 APPEND mailbox {13+}
+C: 13 characters
+S: a001 NO APPEND failed. Command not valid in this state.

Modified: james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/ValidSelected.test
URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/ValidSelected.test?rev=592518&r1=592517&r2=592518&view=diff
==============================================================================
--- james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/ValidSelected.test
(original)
+++ james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/imap/scripts/ValidSelected.test
Tue Nov  6 10:47:04 2007
@@ -18,18 +18,18 @@
 ################################################################
 # Valid in selected only
 C: a001 CHECK
-S: a001 NO CHECK failed. Command not valid in this state
+S: a001 NO CHECK failed. Command not valid in this state.
 C: a001 CLOSE
-S: a001 NO CLOSE failed. Command not valid in this state
-C: a001 COPY
-S: a001 NO COPY failed. Command not valid in this state
+S: a001 NO CLOSE failed. Command not valid in this state.
+C: a001 COPY 1 mailbox
+S: a001 NO COPY failed. Command not valid in this state.
 C: a001 EXPUNGE
-S: a001 NO EXPUNGE failed. Command not valid in this state
+S: a001 NO EXPUNGE failed. Command not valid in this state.
 C: a001 SEARCH
-S: a001 NO SEARCH failed. Command not valid in this state
-C: a001 FETCH
-S: a001 NO FETCH failed. Command not valid in this state
-C: a001 STORE
-S: a001 NO STORE failed. Command not valid in this state
-C: a001 UID
-S: a001 NO UID failed. Command not valid in this state
+S: a001 NO SEARCH failed. Command not valid in this state.
+C: a001 FETCH 1 ALL
+S: a001 NO FETCH failed. Command not valid in this state.
+C: a001 STORE 1 +FLAGS (\Seen)
+S: a001 NO STORE failed. Command not valid in this state.
+C: a001 UID FETCH 1 ALL
+S: a001 NO FETCH failed. Command not valid in this state.

Modified: james/server/trunk/imap-api/src/main/java/org/apache/james/api/imap/display/HumanReadableTextKey.java
URL: http://svn.apache.org/viewvc/james/server/trunk/imap-api/src/main/java/org/apache/james/api/imap/display/HumanReadableTextKey.java?rev=592518&r1=592517&r2=592518&view=diff
==============================================================================
--- james/server/trunk/imap-api/src/main/java/org/apache/james/api/imap/display/HumanReadableTextKey.java
(original)
+++ james/server/trunk/imap-api/src/main/java/org/apache/james/api/imap/display/HumanReadableTextKey.java
Tue Nov  6 10:47:04 2007
@@ -32,6 +32,10 @@
         = new HumanReadableTextKey("org.apache.james.imap.COMPLETED", 
                 "completed.");
     
+    public static final HumanReadableTextKey INVALID_LOGIN 
+        = new HumanReadableTextKey("org.apache.james.imap.INVALID_LOGIN",
+                "failed. Invalid login/password.");
+    
     private final String defaultValue;
     private final String key;
     public HumanReadableTextKey(final String key, final String defaultValue) {

Modified: james/server/trunk/imap-mailbox-processor-function/src/main/java/org/apache/james/imapserver/processor/base/AbstractImapRequestProcessor.java
URL: http://svn.apache.org/viewvc/james/server/trunk/imap-mailbox-processor-function/src/main/java/org/apache/james/imapserver/processor/base/AbstractImapRequestProcessor.java?rev=592518&r1=592517&r2=592518&view=diff
==============================================================================
--- james/server/trunk/imap-mailbox-processor-function/src/main/java/org/apache/james/imapserver/processor/base/AbstractImapRequestProcessor.java
(original)
+++ james/server/trunk/imap-mailbox-processor-function/src/main/java/org/apache/james/imapserver/processor/base/AbstractImapRequestProcessor.java
Tue Nov  6 10:47:04 2007
@@ -103,6 +103,12 @@
         responder.respond(response);
     }
     
+    protected void no(final ImapCommand command, final String tag, 
+            final ImapProcessor.Responder responder, final HumanReadableTextKey displayTextKey)
{
+        final StatusResponse response = factory.taggedNo(tag, command, displayTextKey);
+        responder.respond(response);
+    }
+    
     protected abstract void doProcess(final ImapRequest message,
             ImapSession session, String tag, ImapCommand command, Responder responder)
             throws MailboxException, AuthorizationException, ProtocolException;

Modified: james/server/trunk/imap-mailbox-processor-function/src/main/java/org/apache/james/imapserver/processor/imap4rev1/LoginProcessor.java
URL: http://svn.apache.org/viewvc/james/server/trunk/imap-mailbox-processor-function/src/main/java/org/apache/james/imapserver/processor/imap4rev1/LoginProcessor.java?rev=592518&r1=592517&r2=592518&view=diff
==============================================================================
--- james/server/trunk/imap-mailbox-processor-function/src/main/java/org/apache/james/imapserver/processor/imap4rev1/LoginProcessor.java
(original)
+++ james/server/trunk/imap-mailbox-processor-function/src/main/java/org/apache/james/imapserver/processor/imap4rev1/LoginProcessor.java
Tue Nov  6 10:47:04 2007
@@ -21,23 +21,20 @@
 
 import org.apache.james.api.imap.ImapCommand;
 import org.apache.james.api.imap.ImapMessage;
-import org.apache.james.api.imap.ProtocolException;
+import org.apache.james.api.imap.display.HumanReadableTextKey;
 import org.apache.james.api.imap.message.request.ImapRequest;
-import org.apache.james.api.imap.message.response.ImapResponseMessage;
 import org.apache.james.api.imap.message.response.imap4rev1.StatusResponseFactory;
 import org.apache.james.api.imap.process.ImapProcessor;
 import org.apache.james.api.imap.process.ImapSession;
-import org.apache.james.api.imap.process.ImapProcessor.Responder;
 import org.apache.james.imap.message.request.imap4rev1.LoginRequest;
-import org.apache.james.imap.message.response.imap4rev1.legacy.CommandCompleteResponse;
-import org.apache.james.imap.message.response.imap4rev1.legacy.CommandFailedResponse;
 import org.apache.james.imapserver.processor.base.AbstractImapRequestProcessor;
-import org.apache.james.imapserver.processor.base.AuthorizationException;
 import org.apache.james.imapserver.processor.base.ImapSessionUtils;
-import org.apache.james.imapserver.store.MailboxException;
 import org.apache.james.services.User;
 import org.apache.james.services.UsersRepository;
 
+/**
+ * Processes a <code>LOGIN</code> command.
+ */
 public class LoginProcessor extends AbstractImapRequestProcessor {
 
     private final UsersRepository users;
@@ -53,38 +50,17 @@
     }
 
     protected void doProcess(ImapRequest message,
-            ImapSession session, String tag, ImapCommand command, Responder responder)
-            throws MailboxException, AuthorizationException, ProtocolException {
+            ImapSession session, String tag, ImapCommand command, Responder responder) {
         final LoginRequest request = (LoginRequest) message;
-        final ImapResponseMessage result = doProcess(request, session, tag,
-                command);
-        responder.respond(result);
-    }
-
-    private ImapResponseMessage doProcess(LoginRequest request,
-            ImapSession session, String tag, ImapCommand command)
-            throws MailboxException, AuthorizationException, ProtocolException {
         final String userid = request.getUserid();
         final String passwd = request.getPassword();
-        final ImapResponseMessage result = doProcess(userid, passwd, session,
-                tag, command);
-        return result;
-    }
-
-    private ImapResponseMessage doProcess(final String userid,
-            final String password, ImapSession session, String tag,
-            ImapCommand command) throws MailboxException,
-            AuthorizationException, ProtocolException {
-        final ImapResponseMessage result;
-        if (users.test(userid, password)) {
+        if (users.test(userid, passwd)) {
             User user = users.getUserByName(userid);
             session.authenticated();
             ImapSessionUtils.setUser(session, user);
-            result = new CommandCompleteResponse(command, tag);
+            okComplete(command, tag, responder);
         } else {
-            result = new CommandFailedResponse(command,
-                    "Invalid login/password", tag);
+            no(command,tag, responder, HumanReadableTextKey.INVALID_LOGIN);
         }
-        return result;
     }
 }

Modified: james/server/trunk/phoenix-deployment/src/test/org/apache/james/experimental/imapserver/ExperimentalAuthenticatedStateTest.java
URL: http://svn.apache.org/viewvc/james/server/trunk/phoenix-deployment/src/test/org/apache/james/experimental/imapserver/ExperimentalAuthenticatedStateTest.java?rev=592518&r1=592517&r2=592518&view=diff
==============================================================================
--- james/server/trunk/phoenix-deployment/src/test/org/apache/james/experimental/imapserver/ExperimentalAuthenticatedStateTest.java
(original)
+++ james/server/trunk/phoenix-deployment/src/test/org/apache/james/experimental/imapserver/ExperimentalAuthenticatedStateTest.java
Tue Nov  6 10:47:04 2007
@@ -31,28 +31,12 @@
         // Check whether this is correct behaviour
     }
     
-    public void testSelectEmptyUS() throws Exception {
-//      TODO: \recent flag is returned by FLAGS - specification seems ambiguous on this
-    }
-    
-    public void testAppendExamineInboxUS() throws Exception {
-//      TODO: \recent flag is returned by FLAGS - specification seems ambiguous on this
-    }
-    
-    public void testAppendSelectInboxUS() throws Exception {
-//      TODO: \recent flag is returned by FLAGS - specification seems ambiguous on this
-    }
-    
     public void testListMailboxesUS() throws Exception {
 // TODO: fix bug - complete hierarchy returned
     }
-
-    public void testSelectAppendUS() throws Exception {
-//      TODO: \recent flag is returned by FLAGS - specification seems ambiguous on this
-    }
     
     public void testAppendExpungeUS() throws Exception {
-//      TODO: \recent flag is returned by FLAGS - specification seems ambiguous on this
+//      TODO: EXPUNGE does not return correct flags
     }
     
     public void testListNamespaceUS() throws Exception {
@@ -63,25 +47,9 @@
 //      TODO: \recent flag is returned by FLAGS - specification seems ambiguoITALY on this
     }
     
-    public void testSelectEmptyITALY() throws Exception {
-//      TODO: \recent flag is returned by FLAGS - specification seems ambiguoITALY on this
-    }
-    
-    public void testAppendExamineInboxITALY() throws Exception {
-//      TODO: \recent flag is returned by FLAGS - specification seems ambiguoITALY on this
-    }
-    
-    public void testAppendSelectInboxITALY() throws Exception {
-//      TODO: \recent flag is returned by FLAGS - specification seems ambiguoITALY on this
-    }
-    
     public void testListMailboxesITALY() throws Exception {
 // TODO: fix bug - complete hierarchy returned
     }
-
-    public void testSelectAppendITALY() throws Exception {
-//      TODO: \recent flag is returned by FLAGS - specification seems ambiguoITALY on this
-    }
     
     public void testAppendExpungeITALY() throws Exception {
 //      TODO: \recent flag is returned by FLAGS - specification seems ambiguoITALY on this
@@ -95,25 +63,9 @@
     public void testSubscribeKOREA() throws Exception {
 //      TODO: \recent flag is returned by FLAGS - specification seems ambiguoKOREA on this
     }
-    
-    public void testSelectEmptyKOREA() throws Exception {
-//      TODO: \recent flag is returned by FLAGS - specification seems ambiguoKOREA on this
-    }
-    
-    public void testAppendExamineInboxKOREA() throws Exception {
-//      TODO: \recent flag is returned by FLAGS - specification seems ambiguoKOREA on this
-    }
-    
-    public void testAppendSelectInboxKOREA() throws Exception {
-//      TODO: \recent flag is returned by FLAGS - specification seems ambiguoKOREA on this
-    }
-    
+        
     public void testListMailboxesKOREA() throws Exception {
 // TODO: fix bug - complete hierarchy returned
-    }
-
-    public void testSelectAppendKOREA() throws Exception {
-//      TODO: \recent flag is returned by FLAGS - specification seems ambiguoKOREA on this
     }
     
     public void testAppendExpungeKOREA() throws Exception {

Added: james/server/trunk/phoenix-deployment/src/test/org/apache/james/experimental/imapserver/ExperimentalNonAuthenticatedStateTest.java
URL: http://svn.apache.org/viewvc/james/server/trunk/phoenix-deployment/src/test/org/apache/james/experimental/imapserver/ExperimentalNonAuthenticatedStateTest.java?rev=592518&view=auto
==============================================================================
--- james/server/trunk/phoenix-deployment/src/test/org/apache/james/experimental/imapserver/ExperimentalNonAuthenticatedStateTest.java
(added)
+++ james/server/trunk/phoenix-deployment/src/test/org/apache/james/experimental/imapserver/ExperimentalNonAuthenticatedStateTest.java
Tue Nov  6 10:47:04 2007
@@ -0,0 +1,30 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.james.experimental.imapserver;
+
+import org.apache.james.test.functional.imap.AbstractTestForNonAuthenticatedState;
+
+public class ExperimentalNonAuthenticatedStateTest extends
+        AbstractTestForNonAuthenticatedState {
+
+    public ExperimentalNonAuthenticatedStateTest() throws Exception {
+        super(HostSystemFactory.createStandardImap());
+    }
+}

Added: james/server/trunk/phoenix-deployment/src/test/org/apache/james/experimental/imapserver/ExperimentalSelectedInboxTest.java
URL: http://svn.apache.org/viewvc/james/server/trunk/phoenix-deployment/src/test/org/apache/james/experimental/imapserver/ExperimentalSelectedInboxTest.java?rev=592518&view=auto
==============================================================================
--- james/server/trunk/phoenix-deployment/src/test/org/apache/james/experimental/imapserver/ExperimentalSelectedInboxTest.java
(added)
+++ james/server/trunk/phoenix-deployment/src/test/org/apache/james/experimental/imapserver/ExperimentalSelectedInboxTest.java
Tue Nov  6 10:47:04 2007
@@ -0,0 +1,67 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.james.experimental.imapserver;
+
+import org.apache.james.test.functional.imap.AbstractTestSelectedInbox;
+
+public class ExperimentalSelectedInboxTest extends AbstractTestSelectedInbox {
+
+    public ExperimentalSelectedInboxTest() throws Exception {
+        super(HostSystemFactory.createStandardImap());
+    }
+    
+    public void testListNamespaceUS() throws Exception {
+        //// scriptTest("ListNamespace", Locale.US);
+    }
+    
+    public void testListMailboxesUS() throws Exception {
+        //// scriptTest("ListMailboxes", Locale.US);
+    }
+ 
+    public void testSubscribeUS() throws Exception {
+        //// scriptTest("Subscribe", Locale.US);
+    }
+    
+    
+    public void testListNamespaceITALY() throws Exception {
+        // scriptTest("ListNamespace", Locale.ITALY);
+    }
+    
+    public void testListMailboxesITALY() throws Exception {
+        // scriptTest("ListMailboxes", Locale.ITALY);
+    }
+   
+    
+    public void testSubscribeITALY() throws Exception {
+        // scriptTest("Subscribe", Locale.ITALY);
+    }
+   
+    public void testListNamespaceKOREA() throws Exception {
+        // scriptTest("ListNamespace", Locale.KOREA);
+    }
+    
+    public void testListMailboxesKOREA() throws Exception {
+        // scriptTest("ListMailboxes", Locale.KOREA);
+    }
+    
+    public void testSubscribeKOREA() throws Exception {
+        // scriptTest("Subscribe", Locale.KOREA);
+    }
+}



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