http://git-wip-us.apache.org/repos/asf/james-project/blob/ea545219/mpt/impl/imap-mailbox/inmemory/src/test/java/org/apache/james/mpt/imapmailbox/inmemory/InMemoryMailboxWithLongNameErrorTest.java ---------------------------------------------------------------------- diff --git a/mpt/impl/imap-mailbox/inmemory/src/test/java/org/apache/james/mpt/imapmailbox/inmemory/InMemoryMailboxWithLongNameErrorTest.java b/mpt/impl/imap-mailbox/inmemory/src/test/java/org/apache/james/mpt/imapmailbox/inmemory/InMemoryMailboxWithLongNameErrorTest.java new file mode 100644 index 0000000..14f52d3 --- /dev/null +++ b/mpt/impl/imap-mailbox/inmemory/src/test/java/org/apache/james/mpt/imapmailbox/inmemory/InMemoryMailboxWithLongNameErrorTest.java @@ -0,0 +1,42 @@ +/**************************************************************** + * 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.inmemory; + +import org.apache.james.mpt.api.ImapHostSystem; +import org.apache.james.mpt.imapmailbox.inmemory.host.InMemoryHostSystem; +import org.apache.james.mpt.imapmailbox.suite.MailboxWithLongNameError; +import org.junit.Before; + +public class InMemoryMailboxWithLongNameErrorTest extends MailboxWithLongNameError { + private ImapHostSystem system; + + @Override + @Before + public void setUp() throws Exception { + system = new InMemoryHostSystem(); + system.beforeTest(); + super.setUp(); + } + + @Override + protected ImapHostSystem createImapHostSystem() { + return system; + } +}
http://git-wip-us.apache.org/repos/asf/james-project/blob/ea545219/mpt/impl/imap-mailbox/inmemory/src/test/java/org/apache/james/mpt/imapmailbox/inmemory/InMemoryMailboxWithLongNameSuccessTest.java ---------------------------------------------------------------------- diff --git a/mpt/impl/imap-mailbox/inmemory/src/test/java/org/apache/james/mpt/imapmailbox/inmemory/InMemoryMailboxWithLongNameSuccessTest.java b/mpt/impl/imap-mailbox/inmemory/src/test/java/org/apache/james/mpt/imapmailbox/inmemory/InMemoryMailboxWithLongNameSuccessTest.java deleted file mode 100644 index 954f8a0..0000000 --- a/mpt/impl/imap-mailbox/inmemory/src/test/java/org/apache/james/mpt/imapmailbox/inmemory/InMemoryMailboxWithLongNameSuccessTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/**************************************************************** - * 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.inmemory; - -import org.apache.james.mpt.api.ImapHostSystem; -import org.apache.james.mpt.imapmailbox.inmemory.host.InMemoryHostSystem; -import org.apache.james.mpt.imapmailbox.suite.MailboxWithLongNameSuccess; -import org.junit.Before; - -public class InMemoryMailboxWithLongNameSuccessTest extends MailboxWithLongNameSuccess { - - private ImapHostSystem system; - - @Override - @Before - public void setUp() throws Exception { - system = new InMemoryHostSystem(); - system.beforeTest(); - super.setUp(); - } - - @Override - protected ImapHostSystem createImapHostSystem() { - return system; - } - -} http://git-wip-us.apache.org/repos/asf/james-project/blob/ea545219/mpt/impl/imap-mailbox/jpa/src/test/java/org/apache/james/mpt/imapmailbox/jpa/JpaMailboxWithLongNameErrorTest.java ---------------------------------------------------------------------- diff --git a/mpt/impl/imap-mailbox/jpa/src/test/java/org/apache/james/mpt/imapmailbox/jpa/JpaMailboxWithLongNameErrorTest.java b/mpt/impl/imap-mailbox/jpa/src/test/java/org/apache/james/mpt/imapmailbox/jpa/JpaMailboxWithLongNameErrorTest.java index 6f60b06..0fe4bd4 100644 --- a/mpt/impl/imap-mailbox/jpa/src/test/java/org/apache/james/mpt/imapmailbox/jpa/JpaMailboxWithLongNameErrorTest.java +++ b/mpt/impl/imap-mailbox/jpa/src/test/java/org/apache/james/mpt/imapmailbox/jpa/JpaMailboxWithLongNameErrorTest.java @@ -24,9 +24,7 @@ import org.apache.james.mpt.imapmailbox.jpa.host.JPAHostSystem; import org.apache.james.mpt.imapmailbox.suite.MailboxWithLongNameError; import org.junit.After; import org.junit.Before; -import org.junit.Ignore; -@Ignore("MAILBOX-300 JPA should fail gracefully when too long mailbox name") public class JpaMailboxWithLongNameErrorTest extends MailboxWithLongNameError { private ImapHostSystem system; @@ -35,6 +33,7 @@ public class JpaMailboxWithLongNameErrorTest extends MailboxWithLongNameError { @Before public void setUp() throws Exception { system = JPAHostSystem.build(); + system.beforeTest(); super.setUp(); } http://git-wip-us.apache.org/repos/asf/james-project/blob/ea545219/mpt/impl/imap-mailbox/lucenesearch/src/test/java/org/apache/james/mpt/imapmailbox/lucenesearch/LuceneMailboxWithLongNameErrorTest.java ---------------------------------------------------------------------- diff --git a/mpt/impl/imap-mailbox/lucenesearch/src/test/java/org/apache/james/mpt/imapmailbox/lucenesearch/LuceneMailboxWithLongNameErrorTest.java b/mpt/impl/imap-mailbox/lucenesearch/src/test/java/org/apache/james/mpt/imapmailbox/lucenesearch/LuceneMailboxWithLongNameErrorTest.java index 40cca0f..3376c4b 100644 --- a/mpt/impl/imap-mailbox/lucenesearch/src/test/java/org/apache/james/mpt/imapmailbox/lucenesearch/LuceneMailboxWithLongNameErrorTest.java +++ b/mpt/impl/imap-mailbox/lucenesearch/src/test/java/org/apache/james/mpt/imapmailbox/lucenesearch/LuceneMailboxWithLongNameErrorTest.java @@ -24,9 +24,7 @@ import org.apache.james.mpt.imapmailbox.lucenesearch.host.LuceneSearchHostSystem import org.apache.james.mpt.imapmailbox.suite.MailboxWithLongNameError; import org.junit.After; import org.junit.Before; -import org.junit.Ignore; -@Ignore("MAILBOX-300 JPA should fail gracefully when too long mailbox name") public class LuceneMailboxWithLongNameErrorTest extends MailboxWithLongNameError { private ImapHostSystem system; http://git-wip-us.apache.org/repos/asf/james-project/blob/ea545219/mpt/impl/imap-mailbox/maildir/src/test/java/org/apache/james/mpt/imapmailbox/maildir/MaildirMailboxWithLongNameErrorTest.java ---------------------------------------------------------------------- diff --git a/mpt/impl/imap-mailbox/maildir/src/test/java/org/apache/james/mpt/imapmailbox/maildir/MaildirMailboxWithLongNameErrorTest.java b/mpt/impl/imap-mailbox/maildir/src/test/java/org/apache/james/mpt/imapmailbox/maildir/MaildirMailboxWithLongNameErrorTest.java index 1c8c007..51349d5 100644 --- a/mpt/impl/imap-mailbox/maildir/src/test/java/org/apache/james/mpt/imapmailbox/maildir/MaildirMailboxWithLongNameErrorTest.java +++ b/mpt/impl/imap-mailbox/maildir/src/test/java/org/apache/james/mpt/imapmailbox/maildir/MaildirMailboxWithLongNameErrorTest.java @@ -24,9 +24,7 @@ import org.apache.james.mpt.imapmailbox.maildir.host.MaildirHostSystem; import org.apache.james.mpt.imapmailbox.suite.MailboxWithLongNameError; import org.junit.After; import org.junit.Before; -import org.junit.Ignore; -@Ignore("MAILBOX-299 Maildir should fail gracefully when too long mailbox name") public class MaildirMailboxWithLongNameErrorTest extends MailboxWithLongNameError { private ImapHostSystem system; @@ -35,6 +33,7 @@ public class MaildirMailboxWithLongNameErrorTest extends MailboxWithLongNameErro @Before public void setUp() throws Exception { system = new MaildirHostSystem(); + system.beforeTest(); super.setUp(); } --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org