You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by er...@apache.org on 2015/05/29 07:16:52 UTC

svn commit: r1682367 [1/22] - in /james/mpt/trunk: ./ impl/imap-mailbox/ impl/imap-mailbox/cassandra/ impl/imap-mailbox/cassandra/src/ impl/imap-mailbox/cassandra/src/reporting-site/ impl/imap-mailbox/cassandra/src/test/ impl/imap-mailbox/cassandra/src...

Author: eric
Date: Fri May 29 05:16:50 2015
New Revision: 1682367

URL: http://svn.apache.org/r1682367
Log:
Split the imapmailbox project in per implementation subproject + Add a mailbox MPT test.for Cassandra mailbox, patch contributed by Antoine Duprat (MPT-12)

Added:
    james/mpt/trunk/impl/imap-mailbox/cassandra/
    james/mpt/trunk/impl/imap-mailbox/cassandra/pom.xml
    james/mpt/trunk/impl/imap-mailbox/cassandra/src/
    james/mpt/trunk/impl/imap-mailbox/cassandra/src/reporting-site/
    james/mpt/trunk/impl/imap-mailbox/cassandra/src/reporting-site/site.xml
    james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/
    james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/
    james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/
    james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/
    james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/
    james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/
    james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/
    james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/
    james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/CassandraMailboxTest.java
    james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/CassandraMailboxTestModule.java
    james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/host/
    james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/host/CassandraHostSystem.java
    james/mpt/trunk/impl/imap-mailbox/core/
    james/mpt/trunk/impl/imap-mailbox/core/LICENSE.txt
    james/mpt/trunk/impl/imap-mailbox/core/NOTICE.txt
    james/mpt/trunk/impl/imap-mailbox/core/pom.xml
    james/mpt/trunk/impl/imap-mailbox/core/src/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/host/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/host/ImapHostSystem.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/AbstractMailboxTest.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/ImapTestConstants.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/AuthenticatedState.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/ConcurrentSessions.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/Events.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/Expunge.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/Fetch.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/FetchBodySection.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/FetchBodyStructure.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/FetchHeaders.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/Listing.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/NonAuthenticatedState.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/PartialFetch.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/Rename.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/Search.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/Security.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/Select.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/SelectedInbox.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/SelectedState.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/UidSearch.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/base/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/base/BaseAuthenticatedState.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/base/BaseImapProtocol.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/base/BaseNonAuthenticatedState.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/base/BaseSelectedInbox.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/base/BaseSelectedState.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/session/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/session/ImapSessionImpl.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/user/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/user/InMemoryMailboxUserManager.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/user/MailboxUser.java
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/log4j.properties
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/mime-plain-text.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/multipart-alt-translation.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/multipart-alt.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/multipart-binary.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/multipart-mixed-complex.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/multipart-mixed.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/rfc822-group-addresses.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/rfc822-hello-world.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/rfc822-multiple-addresses.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/rfc822-reply.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/rfc822-resent.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/rfc822-sender.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/rfc822-trace.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/rfc822.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/wild-alt-another-reply.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/wild-alt-reply.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/wild-alt-reply3.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/wild-alt-reply4.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/wild-example.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/wild-mixed-alt.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/samples/wild-mixed.mail
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Append.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/AppendExamineInbox.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/AppendExpunge.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/AppendSelectInbox.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/AppendToSelected.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Authenticate.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/BadTag.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/BodyPartialFetch.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/BogusCommand.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Capability.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Check.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ComplexMail.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Concurrent.todo.txt
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ConcurrentCrossExpunge.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ConcurrentDeleteSelected.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ConcurrentExistsResponse.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ConcurrentExpungeResponse.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ConcurrentFetchResponse.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ConcurrentRenameSelected.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ConcurrentRenameSelectedSub.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Copy.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Create.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Delete.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ExamineEmpty.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Expunge.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ExpungeBasics.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchBodyNoSection.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchEnvelope.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchHeaderFields.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchHeaderFieldsNot.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchInternalDate.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchMultipartAlternative.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchMultipartBodyStructure.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchMultipartMixed.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchMultipartMixedComplex.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchMultipleMessages.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchPeek.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchRFC822.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchRFC822Header.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchRFC822Mixed.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchRFC822Text.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchSimpleBodyStructure.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchSingleMessage.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchStructureComplex.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchStructureEmbedded.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/FetchText.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/HeaderPartialFetch.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/IllegalTag.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/InboxAddMessages.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/InboxDeleteMessages.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/JustTag.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ListMailboxes.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ListNamespace.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ListPercentWildcard.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ListPlus.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Login.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/LoginThreeStrikes.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Logout.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/MimePartialFetch.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Namespace.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/NoCommand.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/NoTag.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Noop.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/PeekMultipartAlternative.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/PeekMultipartMixed.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/PeekMultipartMixedComplex.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Recent.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Rename.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/RenameHierarchy.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/RenameSelected.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Search.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SearchAtoms.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SearchCombinations.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SelectAppend.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SelectEmpty.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SelectInbox.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SelectUnseen.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SelectedStateCleanup.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/SelectedStateSetup.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Status.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Store.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/StringArgs.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Subscribe.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/TextPartialFetch.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Uid.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/UidSearchAtoms.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/UidSearchCombinations.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ValidAuthenticated.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ValidNonAuthenticated.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/ValidSelected.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Welcome.test
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/mailboxmanager/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/mailboxmanager/testdata/
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/mailboxmanager/testdata/DefaultMailboxManagerConf.xml
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/mailboxmanager/testdata/MixedMailstores.xml
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/org/apache/james/mailboxmanager/testdata/VirtualRepositoryMix.xml
    james/mpt/trunk/impl/imap-mailbox/core/src/main/resources/test-repository.xml
    james/mpt/trunk/impl/imap-mailbox/core/src/reporting-site/
    james/mpt/trunk/impl/imap-mailbox/core/src/reporting-site/site.xml
    james/mpt/trunk/impl/imap-mailbox/hbase/
    james/mpt/trunk/impl/imap-mailbox/hbase/LICENSE.txt
    james/mpt/trunk/impl/imap-mailbox/hbase/NOTICE.txt
    james/mpt/trunk/impl/imap-mailbox/hbase/pom.xml
    james/mpt/trunk/impl/imap-mailbox/hbase/src/
    james/mpt/trunk/impl/imap-mailbox/hbase/src/reporting-site/
    james/mpt/trunk/impl/imap-mailbox/hbase/src/reporting-site/site.xml
    james/mpt/trunk/impl/imap-mailbox/hbase/src/test/
    james/mpt/trunk/impl/imap-mailbox/hbase/src/test/java/
    james/mpt/trunk/impl/imap-mailbox/hbase/src/test/java/org/
    james/mpt/trunk/impl/imap-mailbox/hbase/src/test/java/org/apache/
    james/mpt/trunk/impl/imap-mailbox/hbase/src/test/java/org/apache/james/
    james/mpt/trunk/impl/imap-mailbox/hbase/src/test/java/org/apache/james/mpt/
    james/mpt/trunk/impl/imap-mailbox/hbase/src/test/java/org/apache/james/mpt/imapmailbox/
    james/mpt/trunk/impl/imap-mailbox/hbase/src/test/java/org/apache/james/mpt/imapmailbox/hbase/
    james/mpt/trunk/impl/imap-mailbox/hbase/src/test/java/org/apache/james/mpt/imapmailbox/hbase/HBaseMailboxTest.java
    james/mpt/trunk/impl/imap-mailbox/hbase/src/test/java/org/apache/james/mpt/imapmailbox/hbase/HBaseMailboxTestModule.java
    james/mpt/trunk/impl/imap-mailbox/hbase/src/test/java/org/apache/james/mpt/imapmailbox/hbase/host/
    james/mpt/trunk/impl/imap-mailbox/hbase/src/test/java/org/apache/james/mpt/imapmailbox/hbase/host/HBaseHostSystem.java
    james/mpt/trunk/impl/imap-mailbox/inmemory/
    james/mpt/trunk/impl/imap-mailbox/inmemory/LICENSE.txt
    james/mpt/trunk/impl/imap-mailbox/inmemory/NOTICE.txt
    james/mpt/trunk/impl/imap-mailbox/inmemory/pom.xml
    james/mpt/trunk/impl/imap-mailbox/inmemory/src/
    james/mpt/trunk/impl/imap-mailbox/inmemory/src/reporting-site/
    james/mpt/trunk/impl/imap-mailbox/inmemory/src/reporting-site/site.xml
    james/mpt/trunk/impl/imap-mailbox/inmemory/src/test/
    james/mpt/trunk/impl/imap-mailbox/inmemory/src/test/java/
    james/mpt/trunk/impl/imap-mailbox/inmemory/src/test/java/org/
    james/mpt/trunk/impl/imap-mailbox/inmemory/src/test/java/org/apache/
    james/mpt/trunk/impl/imap-mailbox/inmemory/src/test/java/org/apache/james/
    james/mpt/trunk/impl/imap-mailbox/inmemory/src/test/java/org/apache/james/mpt/
    james/mpt/trunk/impl/imap-mailbox/inmemory/src/test/java/org/apache/james/mpt/imapmailbox/
    james/mpt/trunk/impl/imap-mailbox/inmemory/src/test/java/org/apache/james/mpt/imapmailbox/inmemory/
    james/mpt/trunk/impl/imap-mailbox/inmemory/src/test/java/org/apache/james/mpt/imapmailbox/inmemory/InMemoryMailboxTest.java
    james/mpt/trunk/impl/imap-mailbox/inmemory/src/test/java/org/apache/james/mpt/imapmailbox/inmemory/InMemoryMailboxTestModule.java
    james/mpt/trunk/impl/imap-mailbox/inmemory/src/test/java/org/apache/james/mpt/imapmailbox/inmemory/host/
    james/mpt/trunk/impl/imap-mailbox/inmemory/src/test/java/org/apache/james/mpt/imapmailbox/inmemory/host/InMemoryHostSystem.java
    james/mpt/trunk/impl/imap-mailbox/jcr/
    james/mpt/trunk/impl/imap-mailbox/jcr/LICENSE.txt
    james/mpt/trunk/impl/imap-mailbox/jcr/NOTICE.txt
    james/mpt/trunk/impl/imap-mailbox/jcr/pom.xml
    james/mpt/trunk/impl/imap-mailbox/jcr/src/
    james/mpt/trunk/impl/imap-mailbox/jcr/src/reporting-site/
    james/mpt/trunk/impl/imap-mailbox/jcr/src/reporting-site/site.xml
    james/mpt/trunk/impl/imap-mailbox/jcr/src/test/
    james/mpt/trunk/impl/imap-mailbox/jcr/src/test/java/
    james/mpt/trunk/impl/imap-mailbox/jcr/src/test/java/org/
    james/mpt/trunk/impl/imap-mailbox/jcr/src/test/java/org/apache/
    james/mpt/trunk/impl/imap-mailbox/jcr/src/test/java/org/apache/james/
    james/mpt/trunk/impl/imap-mailbox/jcr/src/test/java/org/apache/james/mpt/
    james/mpt/trunk/impl/imap-mailbox/jcr/src/test/java/org/apache/james/mpt/imapmailbox/
    james/mpt/trunk/impl/imap-mailbox/jcr/src/test/java/org/apache/james/mpt/imapmailbox/jcr/
    james/mpt/trunk/impl/imap-mailbox/jcr/src/test/java/org/apache/james/mpt/imapmailbox/jcr/JcrMailboxTest.java
    james/mpt/trunk/impl/imap-mailbox/jcr/src/test/java/org/apache/james/mpt/imapmailbox/jcr/JcrMailboxTestModule.java
    james/mpt/trunk/impl/imap-mailbox/jcr/src/test/java/org/apache/james/mpt/imapmailbox/jcr/host/
    james/mpt/trunk/impl/imap-mailbox/jcr/src/test/java/org/apache/james/mpt/imapmailbox/jcr/host/JCRHostSystem.java
    james/mpt/trunk/impl/imap-mailbox/jpa/
    james/mpt/trunk/impl/imap-mailbox/jpa/LICENSE.txt
    james/mpt/trunk/impl/imap-mailbox/jpa/NOTICE.txt
    james/mpt/trunk/impl/imap-mailbox/jpa/pom.xml
    james/mpt/trunk/impl/imap-mailbox/jpa/src/
    james/mpt/trunk/impl/imap-mailbox/jpa/src/reporting-site/
    james/mpt/trunk/impl/imap-mailbox/jpa/src/reporting-site/site.xml
    james/mpt/trunk/impl/imap-mailbox/jpa/src/test/
    james/mpt/trunk/impl/imap-mailbox/jpa/src/test/java/
    james/mpt/trunk/impl/imap-mailbox/jpa/src/test/java/org/
    james/mpt/trunk/impl/imap-mailbox/jpa/src/test/java/org/apache/
    james/mpt/trunk/impl/imap-mailbox/jpa/src/test/java/org/apache/james/
    james/mpt/trunk/impl/imap-mailbox/jpa/src/test/java/org/apache/james/mpt/
    james/mpt/trunk/impl/imap-mailbox/jpa/src/test/java/org/apache/james/mpt/imapmailbox/
    james/mpt/trunk/impl/imap-mailbox/jpa/src/test/java/org/apache/james/mpt/imapmailbox/jpa/
    james/mpt/trunk/impl/imap-mailbox/jpa/src/test/java/org/apache/james/mpt/imapmailbox/jpa/JpaMailboxTest.java
    james/mpt/trunk/impl/imap-mailbox/jpa/src/test/java/org/apache/james/mpt/imapmailbox/jpa/JpaMailboxTestModule.java
    james/mpt/trunk/impl/imap-mailbox/jpa/src/test/java/org/apache/james/mpt/imapmailbox/jpa/host/
    james/mpt/trunk/impl/imap-mailbox/jpa/src/test/java/org/apache/james/mpt/imapmailbox/jpa/host/JPAHostSystem.java
    james/mpt/trunk/impl/imap-mailbox/maildir/
    james/mpt/trunk/impl/imap-mailbox/maildir/LICENSE.txt
    james/mpt/trunk/impl/imap-mailbox/maildir/NOTICE.txt
    james/mpt/trunk/impl/imap-mailbox/maildir/pom.xml
    james/mpt/trunk/impl/imap-mailbox/maildir/src/
    james/mpt/trunk/impl/imap-mailbox/maildir/src/reporting-site/
    james/mpt/trunk/impl/imap-mailbox/maildir/src/reporting-site/site.xml
    james/mpt/trunk/impl/imap-mailbox/maildir/src/test/
    james/mpt/trunk/impl/imap-mailbox/maildir/src/test/java/
    james/mpt/trunk/impl/imap-mailbox/maildir/src/test/java/org/
    james/mpt/trunk/impl/imap-mailbox/maildir/src/test/java/org/apache/
    james/mpt/trunk/impl/imap-mailbox/maildir/src/test/java/org/apache/james/
    james/mpt/trunk/impl/imap-mailbox/maildir/src/test/java/org/apache/james/mpt/
    james/mpt/trunk/impl/imap-mailbox/maildir/src/test/java/org/apache/james/mpt/imapmailbox/
    james/mpt/trunk/impl/imap-mailbox/maildir/src/test/java/org/apache/james/mpt/imapmailbox/maildir/
    james/mpt/trunk/impl/imap-mailbox/maildir/src/test/java/org/apache/james/mpt/imapmailbox/maildir/MaildirMailboxTest.java
    james/mpt/trunk/impl/imap-mailbox/maildir/src/test/java/org/apache/james/mpt/imapmailbox/maildir/MaildirMailboxTestModule.java
    james/mpt/trunk/impl/imap-mailbox/maildir/src/test/java/org/apache/james/mpt/imapmailbox/maildir/host/
    james/mpt/trunk/impl/imap-mailbox/maildir/src/test/java/org/apache/james/mpt/imapmailbox/maildir/host/MaildirHostSystem.java
    james/mpt/trunk/impl/imap-mailbox/maildir/src/test/java/org/apache/james/mpt/imapmailbox/maildir/util/
    james/mpt/trunk/impl/imap-mailbox/maildir/src/test/java/org/apache/james/mpt/imapmailbox/maildir/util/OsDetector.java
Removed:
    james/mpt/trunk/impl/imap-mailbox/src/
Modified:
    james/mpt/trunk/impl/imap-mailbox/pom.xml
    james/mpt/trunk/pom.xml

Added: james/mpt/trunk/impl/imap-mailbox/cassandra/pom.xml
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/cassandra/pom.xml?rev=1682367&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/cassandra/pom.xml (added)
+++ james/mpt/trunk/impl/imap-mailbox/cassandra/pom.xml Fri May 29 05:16:50 2015
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    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.
+-->
+<project
+        xmlns="http://maven.apache.org/POM/4.0.0"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <artifactId>apache-james-mpt-imapmailbox</artifactId>
+        <groupId>org.apache.james</groupId>
+        <version>0.2-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>apache-james-mpt-imapmailbox-cassandra</artifactId>
+    <name>Apache James MPT Imap Mailbox - Cassandra</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.james</groupId>
+            <artifactId>apache-james-mailbox-cassandra</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.james</groupId>
+            <artifactId>apache-james-mailbox-cassandra</artifactId>
+            <type>test-jar</type>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.james</groupId>
+            <artifactId>apache-james-mpt-imapmailbox-core</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.cassandraunit</groupId>
+            <artifactId>cassandra-unit</artifactId>
+            <version>2.0.2.2</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+</project>
+

Added: james/mpt/trunk/impl/imap-mailbox/cassandra/src/reporting-site/site.xml
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/cassandra/src/reporting-site/site.xml?rev=1682367&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/cassandra/src/reporting-site/site.xml (added)
+++ james/mpt/trunk/impl/imap-mailbox/cassandra/src/reporting-site/site.xml Fri May 29 05:16:50 2015
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+    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.    
+-->
+<project name="${project.name}">
+
+    <body>
+
+        <menu ref="reports" />
+
+    </body>
+
+</project>

Added: james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/CassandraMailboxTest.java
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/CassandraMailboxTest.java?rev=1682367&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/CassandraMailboxTest.java (added)
+++ james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/CassandraMailboxTest.java Fri May 29 05:16:50 2015
@@ -0,0 +1,11 @@
+package org.apache.james.mpt.imapmailbox.cassandra;
+
+import org.apache.james.mpt.imapmailbox.AbstractMailboxTest;
+import org.apache.onami.test.annotation.GuiceModules;
+import org.junit.Ignore;
+
+@Ignore("JWC-144 Some tests are in errors")
+@GuiceModules({ CassandraMailboxTestModule.class })
+public class CassandraMailboxTest extends AbstractMailboxTest {
+
+}

Added: james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/CassandraMailboxTestModule.java
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/CassandraMailboxTestModule.java?rev=1682367&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/CassandraMailboxTestModule.java (added)
+++ james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/CassandraMailboxTestModule.java Fri May 29 05:16:50 2015
@@ -0,0 +1,22 @@
+package org.apache.james.mpt.imapmailbox.cassandra;
+
+import org.apache.james.mpt.api.HostSystem;
+import org.apache.james.mpt.imapmailbox.cassandra.host.CassandraHostSystem;
+
+import com.google.inject.AbstractModule;
+import com.google.inject.Provides;
+import com.google.inject.Singleton;
+
+public class CassandraMailboxTestModule extends AbstractModule {
+
+    @Override
+    protected void configure() {
+    }
+
+    @Provides
+    @Singleton
+    public HostSystem provideHostSystem() throws Exception {
+        return new CassandraHostSystem();
+    }
+
+}

Added: james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/host/CassandraHostSystem.java
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/host/CassandraHostSystem.java?rev=1682367&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/host/CassandraHostSystem.java (added)
+++ james/mpt/trunk/impl/imap-mailbox/cassandra/src/test/java/org/apache/james/mpt/imapmailbox/cassandra/host/CassandraHostSystem.java Fri May 29 05:16:50 2015
@@ -0,0 +1,76 @@
+/****************************************************************
+ * 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.mpt.imapmailbox.cassandra.host;
+
+import org.apache.james.imap.encode.main.DefaultImapEncoderFactory;
+import org.apache.james.imap.main.DefaultImapDecoderFactory;
+import org.apache.james.imap.processor.main.DefaultImapProcessorFactory;
+import org.apache.james.mailbox.SubscriptionManager;
+import org.apache.james.mailbox.cassandra.CassandraClusterSingleton;
+import org.apache.james.mailbox.cassandra.CassandraMailboxManager;
+import org.apache.james.mailbox.cassandra.CassandraMailboxSessionMapperFactory;
+import org.apache.james.mailbox.cassandra.mail.CassandraModSeqProvider;
+import org.apache.james.mailbox.cassandra.mail.CassandraUidProvider;
+import org.apache.james.mailbox.store.JVMMailboxPathLocker;
+import org.apache.james.mailbox.store.MockAuthenticator;
+import org.apache.james.mailbox.store.StoreSubscriptionManager;
+import org.apache.james.mpt.host.ImapHostSystem;
+
+public class CassandraHostSystem extends ImapHostSystem {
+    
+    private final CassandraMailboxManager mailboxManager;
+    private final MockAuthenticator userManager;
+    private CassandraClusterSingleton cassandraClusterSingleton;
+
+    public CassandraHostSystem() throws Exception {
+        cassandraClusterSingleton = CassandraClusterSingleton.build();
+        userManager = new MockAuthenticator();
+
+        com.datastax.driver.core.Session session = cassandraClusterSingleton.getConf();
+        CassandraModSeqProvider modSeqProvider = new CassandraModSeqProvider(session);
+        CassandraUidProvider uidProvider = new CassandraUidProvider(session);
+
+        CassandraMailboxSessionMapperFactory mapperFactory = new CassandraMailboxSessionMapperFactory(uidProvider, modSeqProvider, session);
+        
+        mailboxManager = new CassandraMailboxManager(mapperFactory, userManager, new JVMMailboxPathLocker());
+        mailboxManager.init();
+
+        SubscriptionManager subscriptionManager = new StoreSubscriptionManager(mapperFactory);
+
+        configure(new DefaultImapDecoderFactory().buildImapDecoder(),
+                new DefaultImapEncoderFactory().buildImapEncoder(),
+                DefaultImapProcessorFactory.createDefaultProcessor(mailboxManager, subscriptionManager));
+        cassandraClusterSingleton.ensureAllTables();
+    }
+
+    @Override
+    protected void resetData() throws Exception {
+        cassandraClusterSingleton.clearAllTables();
+    }
+
+    public boolean addUser(String user, String password) {
+        userManager.addUser(user, password);
+        return true;
+    }
+
+    @Override
+    protected void finalize() throws Throwable {
+        super.finalize();
+    }
+}

Added: james/mpt/trunk/impl/imap-mailbox/core/LICENSE.txt
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/LICENSE.txt?rev=1682367&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/core/LICENSE.txt (added)
+++ james/mpt/trunk/impl/imap-mailbox/core/LICENSE.txt Fri May 29 05:16:50 2015
@@ -0,0 +1,176 @@
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
\ No newline at end of file

Added: james/mpt/trunk/impl/imap-mailbox/core/NOTICE.txt
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/NOTICE.txt?rev=1682367&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/core/NOTICE.txt (added)
+++ james/mpt/trunk/impl/imap-mailbox/core/NOTICE.txt Fri May 29 05:16:50 2015
@@ -0,0 +1,11 @@
+
+=========================================================================
+==      NOTICE file for use with the Apache License, Version 2.0,      ==
+=========================================================================
+
+Apache JAMES 
+Copyright 2007-2008 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+            
\ No newline at end of file

Added: james/mpt/trunk/impl/imap-mailbox/core/pom.xml
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/pom.xml?rev=1682367&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/core/pom.xml (added)
+++ james/mpt/trunk/impl/imap-mailbox/core/pom.xml Fri May 29 05:16:50 2015
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    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.
+-->
+<project
+        xmlns="http://maven.apache.org/POM/4.0.0"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <artifactId>apache-james-mpt-imapmailbox</artifactId>
+        <groupId>org.apache.james</groupId>
+        <version>0.2-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>apache-james-mpt-imapmailbox-core</artifactId>
+    <name>Apache James MPT Imap Mailbox Core</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.james</groupId>
+            <artifactId>apache-james-mpt-core</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.james.protocols</groupId>
+            <artifactId>protocols-imap</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.james.protocols</groupId>
+            <artifactId>protocols-imap</artifactId>
+            <type>test-jar</type>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.james</groupId>
+            <artifactId>apache-james-mailbox-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.james</groupId>
+            <artifactId>apache-james-mailbox-store</artifactId>
+            <type>test-jar</type>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.onami</groupId>
+            <artifactId>org.apache.onami.test</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>com.google.inject</groupId>
+            <artifactId>guice</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>commons-io</groupId>
+            <artifactId>commons-io</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>commons-lang</groupId>
+            <artifactId>commons-lang</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${javax.mail.groupId}</groupId>
+            <artifactId>${javax.mail.artifactId}</artifactId>
+            <version>${javax.mail.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+        </dependency>
+        <!-- As mime4j use commons-logging we need to specify the binding here -->
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>jcl-over-slf4j</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.jmock</groupId>
+            <artifactId>jmock</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.jmock</groupId>
+            <artifactId>jmock-junit4</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-simple</artifactId>
+        </dependency>
+    </dependencies>
+
+
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <excludes>
+                        <exclude>**/suite/*.java</exclude>
+                        <exclude>**/suite/**/*.java</exclude>
+                    </excludes>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>
+

Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/host/ImapHostSystem.java
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/host/ImapHostSystem.java?rev=1682367&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/host/ImapHostSystem.java (added)
+++ james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/host/ImapHostSystem.java Fri May 29 05:16:50 2015
@@ -0,0 +1,262 @@
+/****************************************************************
+ * 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.mpt.host;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.nio.ByteBuffer;
+import java.nio.CharBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.CharsetEncoder;
+import java.util.HashSet;
+import java.util.Set;
+
+import org.apache.james.imap.api.process.ImapProcessor;
+import org.apache.james.imap.decode.ImapDecoder;
+import org.apache.james.imap.decode.main.ImapRequestStreamHandler;
+import org.apache.james.imap.encode.ImapEncoder;
+import org.apache.james.mailbox.MailboxSession.User;
+import org.apache.james.mpt.api.Continuation;
+import org.apache.james.mpt.api.HostSystem;
+import org.apache.james.mpt.session.ImapSessionImpl;
+import org.slf4j.LoggerFactory;
+
+public abstract class ImapHostSystem implements HostSystem {
+
+    private ImapDecoder decoder;
+
+    private ImapEncoder encoder;
+
+    private ImapProcessor processor;
+
+    private final Set<User> users;
+
+    public ImapHostSystem() {
+        super();
+        users = new HashSet<User>();
+    }
+
+    public void configure(final ImapDecoder decoder, final ImapEncoder encoder,
+            final ImapProcessor processor) {
+        this.decoder = decoder;
+        this.encoder = encoder;
+        this.processor = processor;
+    }
+
+    public Session newSession(Continuation continuation)
+            throws Exception {
+        return new Session(continuation);
+    }
+
+    public final void reset() throws Exception {
+        users.clear();
+        
+        resetData();
+    }
+    
+    protected abstract void resetData() throws Exception;
+
+    public String getHelloName() {
+        return "JAMES";
+    }
+
+    public ImapDecoder getImapDecoder() {
+        return decoder;
+    }
+
+    public ImapEncoder getImapEncoder() {
+        return encoder;
+    }
+
+    public ImapProcessor getImapProcessor() {
+        return processor;
+    }
+
+    public int getResetLength() {
+        return Integer.MAX_VALUE;
+    }
+
+    public int countUsers() {
+        return users.size();
+    }
+
+    public String getRealName(String name) {
+        return name;
+    }
+
+    class Session implements org.apache.james.mpt.api.Session {
+        ByteBufferOutputStream out;
+
+        ByteBufferInputStream in;
+
+        ImapRequestStreamHandler handler;
+
+        ImapSessionImpl session;
+
+        boolean isReadLast = true;
+
+        public Session(Continuation continuation) {
+            out = new ByteBufferOutputStream(continuation);
+            in = new ByteBufferInputStream();
+            handler = new ImapRequestStreamHandler(decoder, processor, encoder);
+            session = new ImapSessionImpl(LoggerFactory.getLogger("sessionLog"));
+        }
+
+        public String readLine() throws Exception {
+            if (!isReadLast) {
+                handler.handleRequest(in, out, session);
+                isReadLast = true;
+            }
+            final String result = out.nextLine();
+            return result;
+        }
+
+        public void start() throws Exception {
+            // Welcome message handled in the server
+            out.write("* OK IMAP4rev1 Server ready\r\n");
+        }
+
+        public void stop() throws Exception {
+            session.deselect();
+        }
+
+        public void writeLine(String line) throws Exception {
+            isReadLast = false;
+            in.nextLine(line);
+        }
+
+        public void forceConnectionClose(String byeMessage) {
+            try {
+                out.write(byeMessage);
+                session.deselect();
+            } catch (IOException e) {
+                throw new RuntimeException(e);
+            }
+        }
+    }
+
+    static class ByteBufferInputStream extends InputStream {
+
+        ByteBuffer buffer = ByteBuffer.allocate(16384);
+
+        CharsetEncoder encoder = Charset.forName("ASCII").newEncoder();
+
+        boolean readLast = true;
+
+        public int read() throws IOException {
+            if (!readLast) {
+                readLast = true;
+                buffer.flip();
+            }
+            int result = -1;
+            if (buffer.hasRemaining()) {
+                result = buffer.get();
+            }
+            return result;
+        }
+
+        public void nextLine(String line) {
+            if (buffer.position() > 0 && readLast) {
+                buffer.compact();
+            }
+            encoder.encode(CharBuffer.wrap(line), buffer, true);
+            buffer.put((byte) '\r');
+            buffer.put((byte) '\n');
+            readLast = false;
+        }
+    }
+
+    static class ByteBufferOutputStream extends OutputStream {
+        ByteBuffer buffer = ByteBuffer.allocate(65536);
+
+        Charset ascii = Charset.forName("ASCII");
+
+        Continuation continuation;
+
+        boolean matchPlus = false;
+
+        boolean matchCR = false;
+
+        boolean matchLF = false;
+
+        public ByteBufferOutputStream(Continuation continuation) {
+            this.continuation = continuation;
+        }
+
+        public void write(String message) throws IOException {
+            ascii.newEncoder().encode(CharBuffer.wrap(message), buffer, true);
+        }
+
+        public void write(int b) throws IOException {
+            buffer.put((byte) b);
+            if (b == '\n' && matchPlus && matchCR && matchLF) {
+                matchPlus = false;
+                matchCR = false;
+                matchLF = false;
+                continuation.doContinue();
+            } else if (b == '\n') {
+                matchLF = true;
+                matchPlus = false;
+                matchCR = false;
+            } else if (b == '+' && matchLF) {
+                matchPlus = true;
+                matchCR = false;
+            } else if (b == '\r' && matchPlus && matchLF) {
+                matchCR = true;
+            } else {
+                matchPlus = false;
+                matchCR = false;
+                matchLF = false;
+            }
+        }
+
+        public String nextLine() throws Exception {
+            buffer.flip();
+            byte last = 0;
+            while (buffer.hasRemaining()) {
+                byte next = buffer.get();
+                if (last == '\r' && next == '\n') {
+                    break;
+                }
+                last = next;
+            }
+            final ByteBuffer readOnlyBuffer = buffer.asReadOnlyBuffer();
+            readOnlyBuffer.flip();
+            int limit = readOnlyBuffer.limit() - 2;
+            if (limit < 0) {
+                limit = 0;
+            }
+            readOnlyBuffer.limit(limit);
+            String result = ascii.decode(readOnlyBuffer).toString();
+            buffer.compact();
+            return result;
+        }
+    }
+
+    public void afterTests() throws Exception {
+        // default do nothing
+    }
+
+    public void beforeTests() throws Exception {
+        // default do nothing
+    }
+    
+}

Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/AbstractMailboxTest.java
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/AbstractMailboxTest.java?rev=1682367&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/AbstractMailboxTest.java (added)
+++ james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/AbstractMailboxTest.java Fri May 29 05:16:50 2015
@@ -0,0 +1,66 @@
+/****************************************************************
+ * 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.mpt.imapmailbox;
+
+import org.apache.james.mpt.imapmailbox.suite.AuthenticatedState;
+import org.apache.james.mpt.imapmailbox.suite.ConcurrentSessions;
+import org.apache.james.mpt.imapmailbox.suite.Events;
+import org.apache.james.mpt.imapmailbox.suite.Expunge;
+import org.apache.james.mpt.imapmailbox.suite.Fetch;
+import org.apache.james.mpt.imapmailbox.suite.FetchBodySection;
+import org.apache.james.mpt.imapmailbox.suite.FetchBodyStructure;
+import org.apache.james.mpt.imapmailbox.suite.FetchHeaders;
+import org.apache.james.mpt.imapmailbox.suite.Listing;
+import org.apache.james.mpt.imapmailbox.suite.NonAuthenticatedState;
+import org.apache.james.mpt.imapmailbox.suite.PartialFetch;
+import org.apache.james.mpt.imapmailbox.suite.Rename;
+import org.apache.james.mpt.imapmailbox.suite.Search;
+import org.apache.james.mpt.imapmailbox.suite.Security;
+import org.apache.james.mpt.imapmailbox.suite.Select;
+import org.apache.james.mpt.imapmailbox.suite.SelectedInbox;
+import org.apache.james.mpt.imapmailbox.suite.SelectedState;
+import org.apache.james.mpt.imapmailbox.suite.UidSearch;
+import org.apache.onami.test.OnamiSuite;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite.SuiteClasses;
+
+@RunWith(OnamiSuite.class)
+@SuiteClasses({ 
+    AuthenticatedState.class,
+    ConcurrentSessions.class,
+    Events.class,
+    Expunge.class,
+    Fetch.class,
+    FetchBodySection.class,
+    FetchBodyStructure.class,
+    FetchHeaders.class,
+    Listing.class,
+    NonAuthenticatedState.class,
+    PartialFetch.class,
+    Rename.class,
+    Search.class,
+    Security.class,
+    Select.class,
+    SelectedInbox.class,
+    SelectedState.class,
+    UidSearch.class
+})
+public abstract class AbstractMailboxTest {
+
+}

Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/ImapTestConstants.java
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/ImapTestConstants.java?rev=1682367&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/ImapTestConstants.java (added)
+++ james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/ImapTestConstants.java Fri May 29 05:16:50 2015
@@ -0,0 +1,39 @@
+/****************************************************************
+ * 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.mpt.imapmailbox;
+
+/**
+ * Some constants to use when running Imap tests.
+ */
+public interface ImapTestConstants {
+    int PORT = 143;
+
+    String HOST = "localhost";
+
+    String USER = "imapuser";
+
+    String PASSWORD = "password";
+
+    String FROM_ADDRESS = "sender@localhost";
+
+    String TO_ADDRESS = USER + "@" + HOST;
+
+    int TIMEOUT = 10000;
+}

Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/AuthenticatedState.java
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/AuthenticatedState.java?rev=1682367&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/AuthenticatedState.java (added)
+++ james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/AuthenticatedState.java Fri May 29 05:16:50 2015
@@ -0,0 +1,327 @@
+/****************************************************************
+ * 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.mpt.imapmailbox.suite;
+
+import java.util.Locale;
+
+import javax.inject.Inject;
+
+import org.apache.james.mpt.api.HostSystem;
+import org.apache.james.mpt.imapmailbox.suite.base.BaseAuthenticatedState;
+import org.junit.Ignore;
+import org.junit.Test;
+
+public class AuthenticatedState extends BaseAuthenticatedState {
+    
+    @Inject
+    private static HostSystem system;
+    
+    public AuthenticatedState() throws Exception {
+        super(system);
+    }
+
+    @Test
+    public void testNoopUS() throws Exception {
+        scriptTest("Noop", Locale.US);
+    }
+
+    @Test
+    public void testLogoutUS() throws Exception {
+        scriptTest("Logout", Locale.US);
+    }
+
+    @Test
+    public void testCapabilityUS() throws Exception {
+        scriptTest("Capability", Locale.US);
+    }
+
+    @Test
+    public void testAppendExamineInboxUS() throws Exception {
+        scriptTest("AppendExamineInbox", Locale.US);
+    }
+
+    @Test
+    public void testAppendSelectInboxUS() throws Exception {
+        scriptTest("AppendSelectInbox", Locale.US);
+    }
+
+    @Test
+    public void testCreateUS() throws Exception {
+        scriptTest("Create", Locale.US);
+    }
+
+    @Test
+    public void testExamineEmptyUS() throws Exception {
+        scriptTest("ExamineEmpty", Locale.US);
+    }
+
+    @Test
+    public void testSelectEmptyUS() throws Exception {
+        scriptTest("SelectEmpty", Locale.US);
+    }
+
+    @Test
+    public void testListNamespaceUS() throws Exception {
+        scriptTest("ListNamespace", Locale.US);
+    }
+
+    @Test
+    public void testListMailboxesUS() throws Exception {
+        scriptTest("ListMailboxes", Locale.US);
+    }
+
+    @Test
+    public void testStatusUS() throws Exception {
+        scriptTest("Status", Locale.US);
+    }
+
+    @Ignore("JWC-132 : MPT subscription related test do not pass")
+    @Test
+    public void testSubscribeUS() throws Exception {
+        scriptTest("Subscribe", Locale.US);
+    }
+
+    @Test
+    public void testDeleteUS() throws Exception {
+        scriptTest("Delete", Locale.US);
+    }
+
+    @Test
+    public void testAppendUS() throws Exception {
+        scriptTest("Append", Locale.US);
+    }
+
+    @Test
+    public void testAppendExpungeUS() throws Exception {
+        scriptTest("AppendExpunge", Locale.US);
+    }
+
+    @Test
+    public void testSelectAppendUS() throws Exception {
+        scriptTest("SelectAppend", Locale.US);
+    }
+    
+    @Test
+    public void testStringArgsUS() throws Exception {
+        scriptTest("StringArgs", Locale.US);
+    }
+
+    @Test
+    public void testValidNonAuthenticatedUS() throws Exception {
+        scriptTest("ValidNonAuthenticated", Locale.US);
+    }
+
+    @Test
+    public void testNoopITALY() throws Exception {
+        scriptTest("Noop", Locale.ITALY);
+    }
+
+    @Test
+    public void testLogoutITALY() throws Exception {
+        scriptTest("Logout", Locale.ITALY);
+    }
+
+    @Test
+    public void testCapabilityITALY() throws Exception {
+        scriptTest("Capability", Locale.ITALY);
+    }
+
+    @Test
+    public void testAppendExamineInboxITALY() throws Exception {
+        scriptTest("AppendExamineInbox", Locale.ITALY);
+    }
+
+    @Test
+    public void testAppendSelectInboxITALY() throws Exception {
+        scriptTest("AppendSelectInbox", Locale.ITALY);
+    }
+
+    @Test
+    public void testCreateITALY() throws Exception {
+        scriptTest("Create", Locale.ITALY);
+    }
+
+    @Test
+    public void testExamineEmptyITALY() throws Exception {
+        scriptTest("ExamineEmpty", Locale.ITALY);
+    }
+
+    @Test
+    public void testSelectEmptyITALY() throws Exception {
+        scriptTest("SelectEmpty", Locale.ITALY);
+    }
+
+    @Test
+    public void testListNamespaceITALY() throws Exception {
+        scriptTest("ListNamespace", Locale.ITALY);
+    }
+
+    @Test
+    public void testListMailboxesITALY() throws Exception {
+        scriptTest("ListMailboxes", Locale.ITALY);
+    }
+
+    @Test
+    public void testStatusITALY() throws Exception {
+        scriptTest("Status", Locale.ITALY);
+    }
+
+    @Ignore("JWC-132 : MPT subscription related test do not pass")
+    @Test
+    public void testSubscribeITALY() throws Exception {
+        scriptTest("Subscribe", Locale.ITALY);
+    }
+
+    @Test
+    public void testDeleteITALY() throws Exception {
+        scriptTest("Delete", Locale.ITALY);
+    }
+
+    @Test
+    public void testAppendITALY() throws Exception {
+        scriptTest("Append", Locale.ITALY);
+    }
+
+    @Test
+    public void testAppendExpungeITALY() throws Exception {
+        scriptTest("AppendExpunge", Locale.ITALY);
+    }
+
+    @Test
+    public void testSelectAppendITALY() throws Exception {
+        scriptTest("SelectAppend", Locale.ITALY);
+    }
+    
+    @Test
+    public void testStringArgsITALY() throws Exception {
+        scriptTest("StringArgs", Locale.ITALY);
+    }
+
+    @Test
+    public void testValidNonAuthenticatedITALY() throws Exception {
+        scriptTest("ValidNonAuthenticated", Locale.ITALY);
+    }
+
+    @Test
+    public void testNoopKOREA() throws Exception {
+        scriptTest("Noop", Locale.KOREA);
+    }
+
+    @Test
+    public void testLogoutKOREA() throws Exception {
+        scriptTest("Logout", Locale.KOREA);
+    }
+
+    @Test
+    public void testCapabilityKOREA() throws Exception {
+        scriptTest("Capability", Locale.KOREA);
+    }
+
+    @Test
+    public void testAppendExamineInboxKOREA() throws Exception {
+        scriptTest("AppendExamineInbox", Locale.KOREA);
+    }
+
+    @Test
+    public void testAppendSelectInboxKOREA() throws Exception {
+        scriptTest("AppendSelectInbox", Locale.KOREA);
+    }
+
+    @Test
+    public void testCreateKOREA() throws Exception {
+        scriptTest("Create", Locale.KOREA);
+    }
+
+    @Test
+    public void testExamineEmptyKOREA() throws Exception {
+        scriptTest("ExamineEmpty", Locale.KOREA);
+    }
+
+    @Test
+    public void testSelectEmptyKOREA() throws Exception {
+        scriptTest("SelectEmpty", Locale.KOREA);
+    }
+
+    @Test
+    public void testListNamespaceKOREA() throws Exception {
+        scriptTest("ListNamespace", Locale.KOREA);
+    }
+
+    @Test
+    public void testListMailboxesKOREA() throws Exception {
+        scriptTest("ListMailboxes", Locale.KOREA);
+    }
+
+    @Test
+    public void testStatusKOREA() throws Exception {
+        scriptTest("Status", Locale.KOREA);
+    }
+
+    @Ignore("JWC-132 : MPT subscription related test do not pass")
+    @Test
+    public void testSubscribeKOREA() throws Exception {
+        scriptTest("Subscribe", Locale.KOREA);
+    }
+
+    @Test
+    public void testDeleteKOREA() throws Exception {
+        scriptTest("Delete", Locale.KOREA);
+    }
+
+    @Test
+    public void testAppendKOREA() throws Exception {
+        scriptTest("Append", Locale.KOREA);
+    }
+
+    @Test
+    public void testAppendExpungeKOREA() throws Exception {
+        scriptTest("AppendExpunge", Locale.KOREA);
+    }
+
+    @Test
+    public void testSelectAppendKOREA() throws Exception {
+        scriptTest("SelectAppend", Locale.KOREA);
+    }
+
+    @Test
+    public void testStringArgsKOREA() throws Exception {
+        scriptTest("StringArgs", Locale.KOREA);
+    }
+
+    @Test
+    public void testValidNonAuthenticatedKOREA() throws Exception {
+        scriptTest("ValidNonAuthenticated", Locale.KOREA);
+    }
+
+    @Test
+    public void testNamespaceUS() throws Exception {
+        scriptTest("Namespace", Locale.US);
+    }
+
+    @Test
+    public void testNamespaceITALY() throws Exception {
+        scriptTest("Namespace", Locale.ITALY);
+    }
+
+    @Test
+    public void testNamespaceKOREA() throws Exception {
+        scriptTest("Namespace", Locale.KOREA);
+    }
+}

Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/ConcurrentSessions.java
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/ConcurrentSessions.java?rev=1682367&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/ConcurrentSessions.java (added)
+++ james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/ConcurrentSessions.java Fri May 29 05:16:50 2015
@@ -0,0 +1,143 @@
+/****************************************************************
+ * 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.mpt.imapmailbox.suite;
+
+import java.util.Locale;
+
+import javax.inject.Inject;
+
+import org.apache.james.mpt.api.HostSystem;
+import org.apache.james.mpt.imapmailbox.suite.base.BaseAuthenticatedState;
+import org.junit.Test;
+
+public class ConcurrentSessions extends BaseAuthenticatedState {
+
+    @Inject
+    private static HostSystem system;
+    
+    public ConcurrentSessions() throws Exception {
+        super(system);
+    }
+    
+    @Test
+    public void testConcurrentExpungeResponseUS() throws Exception {
+          scriptTest("ConcurrentExpungeResponse", Locale.US);
+    }
+
+    @Test
+    public void testConcurrentExpungeResponseITALY() throws Exception {
+        scriptTest("ConcurrentExpungeResponse", Locale.ITALY);
+    }
+
+    @Test
+    public void testConcurrentExpungeResponseKOREA() throws Exception {
+        scriptTest("ConcurrentExpungeResponse", Locale.KOREA);
+    }
+
+    @Test
+    public void testConcurrentCrossExpungeUS() throws Exception {
+          scriptTest("ConcurrentCrossExpunge", Locale.US);
+    }
+    
+    @Test
+    public void testConcurrentCrossExpungeITALY() throws Exception {
+          scriptTest("ConcurrentCrossExpunge", Locale.ITALY);
+    }
+    
+    @Test
+    public void testConcurrentCrossExpungeKOREA() throws Exception {
+          scriptTest("ConcurrentCrossExpunge", Locale.KOREA);
+    }
+    
+    @Test
+    public void testConcurrentRenameSelectedSubUS() throws Exception {
+        scriptTest("ConcurrentRenameSelectedSub", Locale.US);
+    }
+
+    @Test
+    public void testConcurrentExistsResponseUS() throws Exception {
+        scriptTest("ConcurrentExistsResponse", Locale.US);
+    }
+
+    @Test
+    public void testConcurrentDeleteSelectedUS() throws Exception {
+        scriptTest("ConcurrentDeleteSelected", Locale.US);
+    }
+
+    @Test
+    public void testConcurrentFetchResponseUS() throws Exception {
+        scriptTest("ConcurrentFetchResponse", Locale.US);
+    }
+
+    @Test
+    public void testConcurrentRenameSelectedUS() throws Exception {
+        scriptTest("ConcurrentRenameSelected", Locale.US);
+    }
+
+    @Test
+    public void testConcurrentRenameSelectedSubKOREA() throws Exception {
+        scriptTest("ConcurrentRenameSelectedSub", Locale.KOREA);
+    }
+    
+    @Test
+    public void testConcurrentExistsResponseKOREA() throws Exception {
+        scriptTest("ConcurrentExistsResponse", Locale.KOREA);
+    }
+
+    @Test
+    public void testConcurrentDeleteSelectedKOREA() throws Exception {
+        scriptTest("ConcurrentDeleteSelected", Locale.KOREA);
+    }
+
+    @Test
+    public void testConcurrentFetchResponseKOREA() throws Exception {
+        scriptTest("ConcurrentFetchResponse", Locale.KOREA);
+    }
+
+    @Test
+    public void testConcurrentRenameSelectedKOREA() throws Exception {
+        scriptTest("ConcurrentRenameSelected", Locale.KOREA);
+    }
+
+    @Test
+    public void testConcurrentRenameSelectedSubITALY() throws Exception {
+        scriptTest("ConcurrentRenameSelectedSub", Locale.ITALY);
+    }
+    
+    @Test
+    public void testConcurrentExistsResponseITALY() throws Exception {
+        scriptTest("ConcurrentExistsResponse", Locale.ITALY);
+    }
+
+    @Test
+    public void testConcurrentDeleteSelectedITALY() throws Exception {
+        scriptTest("ConcurrentDeleteSelected", Locale.ITALY);
+    }
+
+    @Test
+    public void testConcurrentFetchResponseITALY() throws Exception {
+        scriptTest("ConcurrentFetchResponse", Locale.ITALY);
+    }
+
+    @Test
+    public void testConcurrentRenameSelectedITALY() throws Exception {
+        scriptTest("ConcurrentRenameSelected", Locale.ITALY);
+    }
+}

Added: james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/Events.java
URL: http://svn.apache.org/viewvc/james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/Events.java?rev=1682367&view=auto
==============================================================================
--- james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/Events.java (added)
+++ james/mpt/trunk/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/imapmailbox/suite/Events.java Fri May 29 05:16:50 2015
@@ -0,0 +1,53 @@
+/****************************************************************
+ * 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.mpt.imapmailbox.suite;
+
+import java.util.Locale;
+
+import javax.inject.Inject;
+
+import org.apache.james.mpt.api.HostSystem;
+import org.apache.james.mpt.imapmailbox.suite.base.BaseSelectedState;
+import org.junit.Test;
+
+public class Events extends BaseSelectedState {
+
+    @Inject
+    private static HostSystem system;
+    
+    public Events() throws Exception {
+        super(system);
+    }
+
+    @Test
+    public void testAppendToSelectedUS() throws Exception {
+        scriptTest("AppendToSelected", Locale.US);
+    }
+
+    @Test
+    public void testAppendToSelectedKOREA() throws Exception {
+        scriptTest("AppendToSelected", Locale.KOREA);
+    }
+
+    @Test
+    public void testAppendToSelectedITALY() throws Exception {
+        scriptTest("AppendToSelected", Locale.ITALY);
+    }
+}



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