Author: felixk Date: Mon Sep 26 10:58:38 2011 New Revision: 1175788 URL: http://svn.apache.org/viewvc?rev=1175788&view=rev Log: (empty)
Added: james/hupa/trunk/client/src/test/java/org/apache/hupa/client/guice/GuiceClientTestModule.java (with props) james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule$1.class (with props) james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule$2.class (with props) james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule$3.class (with props) james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule$TestUser$1.class (with props) james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule$TestUser.class (with props) james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.class (with props) james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.java (with props) james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants$1.class (with props) james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants$2.class (with props) james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants$3.class (with props) james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants$4.class (with props) james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants.class (with props) james/hupa/trunk/mock/target/ james/hupa/trunk/mock/target/.plxarc james/hupa/trunk/mock/target/classes/ james/hupa/trunk/mock/target/classes/META-INF/ james/hupa/trunk/mock/target/classes/META-INF/maven/ james/hupa/trunk/mock/target/classes/META-INF/maven/org.apache.hupa/ james/hupa/trunk/mock/target/classes/META-INF/maven/org.apache.hupa/hupa-mock/ james/hupa/trunk/mock/target/classes/META-INF/maven/org.apache.hupa/hupa-mock/pom.properties (with props) james/hupa/trunk/mock/target/classes/META-INF/maven/org.apache.hupa/hupa-mock/pom.xml (with props) james/hupa/trunk/mock/target/classes/mime/ james/hupa/trunk/mock/target/classes/mime/0.msg james/hupa/trunk/mock/target/classes/mime/1.msg james/hupa/trunk/mock/target/classes/mime/2.msg james/hupa/trunk/mock/target/classes/mime/3.msg james/hupa/trunk/mock/target/classes/mime/4.msg james/hupa/trunk/mock/target/classes/mime/5.msg james/hupa/trunk/mock/target/classes/mime/6.msg james/hupa/trunk/mock/target/classes/mime/7.msg james/hupa/trunk/mock/target/classes/org/ james/hupa/trunk/mock/target/classes/org/apache/ james/hupa/trunk/mock/target/classes/org/apache/hupa/ james/hupa/trunk/mock/target/classes/org/apache/hupa/server/ james/hupa/trunk/mock/target/classes/org/apache/hupa/server/mock/ james/hupa/trunk/mock/target/classes/org/apache/hupa/server/mock/MockHttpSession$1.class (with props) james/hupa/trunk/mock/target/classes/org/apache/hupa/server/mock/MockHttpSession.class (with props) james/hupa/trunk/mock/target/classes/org/apache/hupa/server/mock/MockHttpSessionProvider.class (with props) james/hupa/trunk/mock/target/classes/org/apache/hupa/server/mock/MockIMAPFolder.class (with props) james/hupa/trunk/mock/target/classes/org/apache/hupa/server/mock/MockIMAPStore.class (with props) james/hupa/trunk/mock/target/classes/org/apache/hupa/server/mock/MockLog.class (with props) james/hupa/trunk/mock/target/classes/org/apache/hupa/server/mock/MockLogProvider.class (with props) james/hupa/trunk/mock/target/classes/org/apache/hupa/server/mock/MockSMTPTransport$1.class (with props) james/hupa/trunk/mock/target/classes/org/apache/hupa/server/mock/MockSMTPTransport.class (with props) james/hupa/trunk/mock/target/generated-sources/ james/hupa/trunk/mock/target/hupa-mock-0.0.1-SNAPSHOT.jar (with props) james/hupa/trunk/mock/target/maven-archiver/ james/hupa/trunk/mock/target/maven-shared-archive-resources/ james/hupa/trunk/mock/target/surefire/ james/hupa/trunk/mock/target/test-classes/ james/hupa/trunk/server/src/test/java/org/apache/hupa/server/guice/GuiceServerTestModule.java (with props) Modified: james/hupa/trunk/client/pom.xml james/hupa/trunk/client/src/test/java/org/apache/hupa/client/HupaMvpTestCase.java james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mvp/MessageSendPresenterTest.java james/hupa/trunk/server/src/test/java/org/apache/hupa/server/preferences/InImapUserPreferencesStorageTest.java Modified: james/hupa/trunk/client/pom.xml URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/pom.xml?rev=1175788&r1=1175787&r2=1175788&view=diff ============================================================================== --- james/hupa/trunk/client/pom.xml (original) +++ james/hupa/trunk/client/pom.xml Mon Sep 26 10:58:38 2011 @@ -106,6 +106,11 @@ <dependencies> <dependency> <groupId>org.apache.hupa</groupId> + <artifactId>hupa-mock</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.hupa</groupId> <artifactId>hupa-server</artifactId> </dependency> <dependency> Modified: james/hupa/trunk/client/src/test/java/org/apache/hupa/client/HupaMvpTestCase.java URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/test/java/org/apache/hupa/client/HupaMvpTestCase.java?rev=1175788&r1=1175787&r2=1175788&view=diff ============================================================================== --- james/hupa/trunk/client/src/test/java/org/apache/hupa/client/HupaMvpTestCase.java (original) +++ james/hupa/trunk/client/src/test/java/org/apache/hupa/client/HupaMvpTestCase.java Mon Sep 26 10:58:38 2011 @@ -31,7 +31,7 @@ import net.customware.gwt.presenter.clie import org.apache.hupa.client.guice.GuiceMvpTestModule; import org.apache.hupa.server.IMAPStoreCache; -import org.apache.hupa.server.guice.GuiceServerTestModule; +import org.apache.hupa.client.guice.GuiceClientTestModule; import org.apache.hupa.server.preferences.UserPreferencesStorage; import org.apache.hupa.server.utils.SessionUtils; import org.apache.hupa.shared.SConsts; @@ -60,7 +60,7 @@ public abstract class HupaMvpTestCase ex protected EventBus eventBus; protected Module[] getModules() { - return new Module[]{new GuiceServerTestModule(), new GuiceMvpTestModule()}; + return new Module[]{new GuiceClientTestModule(), new GuiceMvpTestModule()}; } @Override Added: james/hupa/trunk/client/src/test/java/org/apache/hupa/client/guice/GuiceClientTestModule.java URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/test/java/org/apache/hupa/client/guice/GuiceClientTestModule.java?rev=1175788&view=auto ============================================================================== --- james/hupa/trunk/client/src/test/java/org/apache/hupa/client/guice/GuiceClientTestModule.java (added) +++ james/hupa/trunk/client/src/test/java/org/apache/hupa/client/guice/GuiceClientTestModule.java Mon Sep 26 10:58:38 2011 @@ -0,0 +1,100 @@ +/**************************************************************** + * 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.hupa.client.guice; + +import javax.mail.Session; +import javax.servlet.http.HttpSession; + +import org.apache.commons.logging.Log; +import org.apache.hupa.server.IMAPStoreCache; +import org.apache.hupa.server.InMemoryIMAPStoreCache; +import org.apache.hupa.server.guice.AbstractGuiceTestModule; +import org.apache.hupa.server.guice.DefaultUserSettingsProvider; +import org.apache.hupa.server.guice.DemoModeConstants; +import org.apache.hupa.server.guice.SessionProvider; +import org.apache.hupa.server.handler.AbstractSendMessageHandler; +import org.apache.hupa.server.handler.ContactsHandler; +import org.apache.hupa.server.handler.CreateFolderHandler; +import org.apache.hupa.server.handler.DeleteFolderHandler; +import org.apache.hupa.server.handler.DeleteMessageByUidHandler; +import org.apache.hupa.server.handler.FetchFoldersHandler; +import org.apache.hupa.server.handler.FetchMessagesHandler; +import org.apache.hupa.server.handler.ForwardMessageHandler; +import org.apache.hupa.server.handler.GetMessageDetailsHandler; +import org.apache.hupa.server.handler.IdleHandler; +import org.apache.hupa.server.handler.LoginUserHandler; +import org.apache.hupa.server.handler.LogoutUserHandler; +import org.apache.hupa.server.handler.ReplyMessageHandler; +import org.apache.hupa.server.handler.SendMessageHandler; +import org.apache.hupa.server.mock.MockHttpSessionProvider; +import org.apache.hupa.server.mock.MockIMAPStore; +import org.apache.hupa.server.mock.MockLogProvider; +import org.apache.hupa.server.preferences.InSessionUserPreferencesStorage; +import org.apache.hupa.server.preferences.UserPreferencesStorage; +import org.apache.hupa.shared.data.Settings; +import org.apache.hupa.shared.data.User; +import org.apache.hupa.shared.rpc.Contacts; +import org.apache.hupa.shared.rpc.SendMessage; + +import com.google.inject.Singleton; +import com.google.inject.name.Names; +import com.sun.mail.imap.IMAPStore; + +/** + * Guice module used in client tests. + */ +public class GuiceClientTestModule extends AbstractGuiceTestModule { + + @Override + protected void configureHandlers() { + Names.bindProperties(binder(), DemoModeConstants.demoProperties); + + bind(Session.class).toProvider(SessionProvider.class); + bind(HttpSession.class).toProvider(MockHttpSessionProvider.class); + bind(Settings.class).toProvider(DefaultUserSettingsProvider.class).in(Singleton.class); + bind(Log.class).toProvider(MockLogProvider.class).in(Singleton.class); + + bind(IMAPStore.class).to(MockIMAPStore.class); + bind(IMAPStoreCache.class).to(InMemoryIMAPStoreCache.class).in(Singleton.class); + + bind(LoginUserHandler.class); + bind(LogoutUserHandler.class); + bind(IdleHandler.class); + + bind(FetchFoldersHandler.class); + bind(CreateFolderHandler.class); + bind(DeleteFolderHandler.class); + bind(FetchMessagesHandler.class); + bind(DeleteMessageByUidHandler.class); + bind(GetMessageDetailsHandler.class); + bind(AbstractSendMessageHandler.class).to(SendMessageHandler.class); + bind(SendMessageHandler.class); + bind(ReplyMessageHandler.class); + bind(ForwardMessageHandler.class); + + bindHandler(Contacts.class, ContactsHandler.class); + bindHandler(SendMessage.class, SendMessageHandler.class); + + bind(UserPreferencesStorage.class).to(InSessionUserPreferencesStorage.class); + + bind(User.class).to(TestUser.class).in(Singleton.class); + } + +} \ No newline at end of file Propchange: james/hupa/trunk/client/src/test/java/org/apache/hupa/client/guice/GuiceClientTestModule.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mvp/MessageSendPresenterTest.java URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mvp/MessageSendPresenterTest.java?rev=1175788&r1=1175787&r2=1175788&view=diff ============================================================================== --- james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mvp/MessageSendPresenterTest.java (original) +++ james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mvp/MessageSendPresenterTest.java Mon Sep 26 10:58:38 2011 @@ -29,7 +29,7 @@ import org.apache.hupa.client.HupaMvpTes import org.apache.hupa.client.guice.GuiceMvpTestModule; import org.apache.hupa.client.guice.GuiceMvpTestModule.DispatchTestAsync; import org.apache.hupa.client.mvp.MessageSendPresenter.Type; -import org.apache.hupa.server.guice.GuiceServerTestModule; +import org.apache.hupa.client.guice.GuiceClientTestModule; import org.apache.hupa.shared.data.IMAPFolder; import org.apache.hupa.shared.data.Message; import org.apache.hupa.shared.data.MessageDetails; @@ -50,7 +50,7 @@ public class MessageSendPresenterTest ex protected Module[] getModules() { - return new Module[]{new GuiceServerTestModule(), new GuiceMvpTestModule() { + return new Module[]{new GuiceClientTestModule(), new GuiceMvpTestModule() { @Override protected void configure() { dispatchAsyncInstance = EasyMock.createStrictMock(DispatchAsync.class); Added: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule$1.class URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule%241.class?rev=1175788&view=auto ============================================================================== Binary file - no diff available. Propchange: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule$1.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule$2.class URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule%242.class?rev=1175788&view=auto ============================================================================== Binary file - no diff available. Propchange: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule$2.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule$3.class URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule%243.class?rev=1175788&view=auto ============================================================================== Binary file - no diff available. Propchange: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule$3.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule$TestUser$1.class URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule%24TestUser%241.class?rev=1175788&view=auto ============================================================================== Binary file - no diff available. Propchange: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule$TestUser$1.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule$TestUser.class URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule%24TestUser.class?rev=1175788&view=auto ============================================================================== Binary file - no diff available. Propchange: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule$TestUser.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.class URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.class?rev=1175788&view=auto ============================================================================== Binary file - no diff available. Propchange: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.java URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.java?rev=1175788&view=auto ============================================================================== --- james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.java (added) +++ james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.java Mon Sep 26 10:58:38 2011 @@ -0,0 +1,223 @@ +/**************************************************************** + * 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.hupa.server.guice; + +import java.util.Properties; + +import net.customware.gwt.dispatch.server.guice.ActionHandlerModule; + +import org.apache.hupa.shared.data.Settings; +import org.apache.hupa.shared.data.User; + +import com.google.inject.Inject; +import com.google.inject.name.Named; + +/** + * Abstract Guice module. + * Extend this class with your own, and set bindings to your need. E.g. + * + * <pre> + * @Override + * protected void configureHandlers() { + * Names.bindProperties(binder(), properties); + * + * bind(Session.class).toProvider(sessionClass); + * bind(HttpSession.class).toProvider(MockHttpSessionProvider.class); + * bind(Settings.class).toProvider(settingsProviderClass).in(Singleton.class); + * bind(Log.class).toProvider(logClass).in(Singleton.class); + * + * bind(IMAPStore.class).to(imapStoreClass); + * bind(IMAPStoreCache.class).to(imapStoreCacheClass).in(Singleton.class); + * + * bind(LoginUserHandler.class); + * bind(LogoutUserHandler.class); + * bind(IdleHandler.class); + * + * bind(FetchFoldersHandler.class); + * bind(CreateFolderHandler.class); + * bind(DeleteFolderHandler.class); + * bind(FetchMessagesHandler.class); + * bind(DeleteMessageByUidHandler.class); + * bind(GetMessageDetailsHandler.class); + * bind(AbstractSendMessageHandler.class).to(SendMessageHandler.class); + * bind(SendMessageHandler.class); + * bind(ReplyMessageHandler.class); + * bind(ForwardMessageHandler.class); + * + * bindHandler(Contacts.class, ContactsHandler.class); + * bindHandler(SendMessage.class, SendMessageHandler.class); + * + * bind(UserPreferencesStorage.class).to(userPreferencesClass); + * + * bind(User.class).to(TestUser.class).in(Singleton.class); + * + * } + * </pre> + * + * @author manolo + * + */ +public abstract class AbstractGuiceTestModule extends ActionHandlerModule { + + + protected static class TestUser extends User { + private static final long serialVersionUID = 1L; + @Inject + public TestUser(@Named("Username") String username, + @Named("Password") String password, + @Named("DefaultInboxFolder") final String inbox, + @Named("DefaultSentFolder") final String sent, + @Named("DefaultTrashFolder") final String trash, + @Named("DefaultDraftsFolder") final String draft) { + setName(username); + setPassword(password); + setSettings(new Settings() { + private static final long serialVersionUID = 1L; + { + setInboxFolderName(inbox); + setSentFolderName(sent); + setTrashFolderName(trash); + setDraftsFolderName(draft); + } + }); + } + } + + + /** + * Configuration of a Apache-James server. + * Customize it for your integration tests. + */ + public static final Properties jamesProperties = new Properties() { + private static final long serialVersionUID = 1L; + { + // SET THIS + put("Username","manolo"); + put("Password","***"); + /// + + put("IMAPServerAddress", "localhost"); + put("IMAPServerPort", "143"); + put("IMAPS", "false"); + + put("TrustStore", "my-truststore"); + put("TrustStorePassword", "my-truststore-password"); + + put("IMAPConnectionPoolSize", "4"); + put("IMAPConnectionPoolTimeout", "300000"); + + put("DefaultInboxFolder", "INBOX"); + put("DefaultTrashFolder", "Trash"); + put("DefaultSentFolder", "Sent"); + put("DefaultDraftsFolder", "Drafts"); + + put("PostFetchMessageCount", "0"); + + put("SMTPServerAddress", "localhost"); + put("SMTPServerPort", "25"); + put("SMTPS", "false"); + put("SMTPAuth", "true"); + + put("SessionDebug", "false"); + + put("DefaultUserSessionId", "just_an_id"); + } + }; + + /** + * Configuration of an IMAP server. + * Customize it for your integration tests. + */ + public static final Properties courierProperties = new Properties() { + private static final long serialVersionUID = 1L; + { + // SET THIS + put("Username","user"); + put("Password","password"); + /// + + put("IMAPServerAddress", "localhost"); + put("IMAPServerPort", "143"); + put("IMAPS", "false"); + + put("TrustStore", "my-truststore"); + put("TrustStorePassword", "my-truststore-password"); + + put("IMAPConnectionPoolSize", "4"); + put("IMAPConnectionPoolTimeout", "300000"); + + put("DefaultInboxFolder", "INBOX"); + put("DefaultTrashFolder", "INBOX.Trash"); + put("DefaultSentFolder", "INBOX.Sent"); + put("DefaultDraftsFolder", "INBOX.Drafts"); + + put("PostFetchMessageCount", "0"); + + put("SMTPServerAddress", "mail.hotelsearch.com"); + put("SMTPServerPort", "25"); + put("SMTPS", "false"); + put("SMTPAuth", "true"); + + put("SessionDebug", "false"); + + put("DefaultUserSessionId", "just_an_id"); + } + }; + + /** + * Configuration of GMail IMAP server. + */ + public static final Properties gmailProperties = new Properties() { + private static final long serialVersionUID = 1L; + { + // Use a valid gmail account + put("Username","doodoo...@gmail.com"); + put("Password","******"); + ///// + + put("IMAPServerAddress", "imap.gmail.com"); + put("IMAPServerPort", "993"); + put("IMAPS", "true"); + + put("TrustStore", "my-truststore"); + put("TrustStorePassword", "my-truststore-password"); + + put("IMAPConnectionPoolSize", "4"); + put("IMAPConnectionPoolTimeout", "300000"); + + put("DefaultInboxFolder", "INBOX"); + put("DefaultTrashFolder", "[Gmail]/Trash"); + put("DefaultSentFolder", "[Gmail]/Sent Mail"); + put("DefaultDraftsFolder", "[Gmail]/Drafts"); + + put("PostFetchMessageCount", "0"); + + put("SMTPServerAddress", "smtp.gmail.com"); + put("SMTPServerPort", "465"); + put("SMTPS", "true"); + put("SMTPAuth", "true"); + + put("SessionDebug", "false"); + + put("DefaultUserSessionId", "just_an_id"); + } + }; + +} Propchange: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.java ------------------------------------------------------------------------------ svn:eol-style = native Added: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants$1.class URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants%241.class?rev=1175788&view=auto ============================================================================== Binary file - no diff available. Propchange: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants$1.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants$2.class URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants%242.class?rev=1175788&view=auto ============================================================================== Binary file - no diff available. Propchange: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants$2.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants$3.class URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants%243.class?rev=1175788&view=auto ============================================================================== Binary file - no diff available. Propchange: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants$3.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants$4.class URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants%244.class?rev=1175788&view=auto ============================================================================== Binary file - no diff available. Propchange: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants$4.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants.class URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants.class?rev=1175788&view=auto ============================================================================== Binary file - no diff available. Propchange: james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/DemoModeConstants.class ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: james/hupa/trunk/mock/target/.plxarc URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/target/.plxarc?rev=1175788&view=auto ============================================================================== --- james/hupa/trunk/mock/target/.plxarc (added) +++ james/hupa/trunk/mock/target/.plxarc Mon Sep 26 10:58:38 2011 @@ -0,0 +1 @@ +maven-shared-archive-resources \ No newline at end of file Added: james/hupa/trunk/mock/target/classes/META-INF/maven/org.apache.hupa/hupa-mock/pom.properties URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/target/classes/META-INF/maven/org.apache.hupa/hupa-mock/pom.properties?rev=1175788&view=auto ============================================================================== --- james/hupa/trunk/mock/target/classes/META-INF/maven/org.apache.hupa/hupa-mock/pom.properties (added) +++ james/hupa/trunk/mock/target/classes/META-INF/maven/org.apache.hupa/hupa-mock/pom.properties Mon Sep 26 10:58:38 2011 @@ -0,0 +1,7 @@ +#Generated by Maven Integration for Eclipse +#Mon Sep 26 12:56:10 CEST 2011 +version=0.0.1-SNAPSHOT +groupId=org.apache.hupa +m2e.projectName=hupa-mock +m2e.projectLocation=/home/felix/svn/apache/james/current/hupa/mock +artifactId=hupa-mock Propchange: james/hupa/trunk/mock/target/classes/META-INF/maven/org.apache.hupa/hupa-mock/pom.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: james/hupa/trunk/mock/target/classes/META-INF/maven/org.apache.hupa/hupa-mock/pom.properties ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: james/hupa/trunk/mock/target/classes/META-INF/maven/org.apache.hupa/hupa-mock/pom.xml URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/target/classes/META-INF/maven/org.apache.hupa/hupa-mock/pom.xml?rev=1175788&view=auto ============================================================================== --- james/hupa/trunk/mock/target/classes/META-INF/maven/org.apache.hupa/hupa-mock/pom.xml (added) +++ james/hupa/trunk/mock/target/classes/META-INF/maven/org.apache.hupa/hupa-mock/pom.xml Mon Sep 26 10:58:38 2011 @@ -0,0 +1,121 @@ +<?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 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> + <groupId>org.apache.hupa</groupId> + <artifactId>hupa-mock</artifactId> + <name>hupa-mock</name> + <description>Mock objects for hupa</description> + <packaging>jar</packaging> + + <parent> + <groupId>org.apache.hupa</groupId> + <artifactId>hupa-parent</artifactId> + <version>0.0.1-SNAPSHOT</version> + <relativePath>../pom.xml</relativePath> + </parent> + + <build> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.hupa</groupId> + <artifactId>hupa-shared</artifactId> + </dependency> + <dependency> + <groupId>javax.inject</groupId> + <artifactId>javax.inject</artifactId> + </dependency> + <dependency> + <groupId>aopalliance</groupId> + <artifactId>aopalliance</artifactId> + </dependency> + <dependency> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + <exclusions> + <exclusion> + <groupId>logkit</groupId> + <artifactId>logkit</artifactId> + </exclusion> + <exclusion> + <groupId>avalon-framework</groupId> + <artifactId>avalon-framework</artifactId> + </exclusion> + <exclusion> + <groupId>javax.servlet</groupId> + <artifactId>servlet-api</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + </dependency> + <dependency> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + </dependency> + + <dependency> + <groupId>net.customware.gwt.dispatch + </groupId> + <artifactId>gwt-dispatch</artifactId> + </dependency> + + <dependency> + <groupId>gwtupload</groupId> + <artifactId>gwtupload</artifactId> + </dependency> + <dependency> + <groupId>commons-fileupload</groupId> + <artifactId>commons-fileupload</artifactId> + </dependency> + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + </dependency> + <dependency> + <groupId>com.google.code.guice</groupId> + <artifactId>guice</artifactId> + </dependency> + <dependency> + <groupId>com.google.code.guice</groupId> + <artifactId>guice-assistedinject</artifactId> + </dependency> + <dependency> + <groupId>com.google.code.guice</groupId> + <artifactId>guice-servlet</artifactId> + <version>3.0</version> + </dependency> + <dependency> + <groupId>com.google.gwt</groupId> + <artifactId>gwt-user</artifactId> + </dependency> + <dependency> + <groupId>com.google.gwt</groupId> + <artifactId>gwt-servlet</artifactId> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <scope>test</scope> + </dependency> + </dependencies> +</project> Propchange: james/hupa/trunk/mock/target/classes/META-INF/maven/org.apache.hupa/hupa-mock/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: james/hupa/trunk/mock/target/classes/META-INF/maven/org.apache.hupa/hupa-mock/pom.xml ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: james/hupa/trunk/mock/target/classes/mime/0.msg URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/target/classes/mime/0.msg?rev=1175788&view=auto ============================================================================== --- james/hupa/trunk/mock/target/classes/mime/0.msg (added) +++ james/hupa/trunk/mock/target/classes/mime/0.msg Mon Sep 26 10:58:38 2011 @@ -0,0 +1,17 @@ +From: nob...@foo.com +To: nob...@foo.com +Subject: Incomplete headers + +This is a demo message without any content-type and date in the headers. +This content has to be rendered as normal text without any format. + +Links and emails have to be enclosed in links + +http://www.google.com +Mail: nob...@localhost.com + +Html tags have to be escaped + +<a href="http://www.google.com">google</a> +<a> <b> <div> <pre> </pre> + --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org