This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 161acd65cdcecb37fed302ef9a929003c9e6759d Author: Tran Tien Duc <dt...@linagora.com> AuthorDate: Mon Dec 16 19:38:59 2019 +0700 JAMES-3012 Moving BasicFeature to a generic maven module --- .../pom.xml | 2 +- .../apache/james/jmap/JMAPAuthenticationTest.java | 2 +- .../org/apache/james/jmap/ProvisioningTest.java | 2 +- .../apache/james/jmap/VacationIntegrationTest.java | 2 +- .../james/jmap/VacationRelayIntegrationTest.java | 2 +- .../jmap/draft/methods/integration/FilterTest.java | 2 +- .../integration/GetMailboxesMethodTest.java | 2 +- .../integration/GetMessageListMethodTest.java | 2 +- .../integration/GetVacationResponseTest.java | 2 +- .../methods/integration/QuotaMailingTest.java | 2 +- .../methods/integration/SendMDNMethodTest.java | 2 +- .../integration/SetMailboxesMethodTest.java | 2 +- .../methods/integration/SetMessagesMethodTest.java | 2 +- .../integration/SetVacationResponseTest.java | 2 +- .../pom.xml | 2 +- .../james/junit/categories/BasicFeature.java | 27 ++++++++++++++++++++++ 16 files changed, 42 insertions(+), 15 deletions(-) diff --git a/server/protocols/jmap-draft-integration-testing/cassandra-jmap-draft-integration-testing/pom.xml b/server/protocols/jmap-draft-integration-testing/cassandra-jmap-draft-integration-testing/pom.xml index 9330511..ffd1d39 100644 --- a/server/protocols/jmap-draft-integration-testing/cassandra-jmap-draft-integration-testing/pom.xml +++ b/server/protocols/jmap-draft-integration-testing/cassandra-jmap-draft-integration-testing/pom.xml @@ -225,7 +225,7 @@ <reuseForks>true</reuseForks> <!-- Fail tests longer than 2 hours, prevent form random locking tests --> <forkedProcessTimeoutInSeconds>7200</forkedProcessTimeoutInSeconds> - <groups combine.self="override">org.apache.james.jmap.categories.CassandraAndElasticSearchCategory,org.apache.james.jmap.categories.BasicFeature,org.apache.james.jmap.categories.EnableCucumber</groups> + <groups combine.self="override">org.apache.james.jmap.categories.CassandraAndElasticSearchCategory,org.apache.james.junit.categories.BasicFeature,org.apache.james.jmap.categories.EnableCucumber</groups> </configuration> </plugin> </plugins> diff --git a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/JMAPAuthenticationTest.java b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/JMAPAuthenticationTest.java index e7931ee..8368792 100644 --- a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/JMAPAuthenticationTest.java +++ b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/JMAPAuthenticationTest.java @@ -33,9 +33,9 @@ import java.time.format.DateTimeFormatter; import java.util.UUID; import org.apache.james.GuiceJamesServer; -import org.apache.james.jmap.categories.BasicFeature; import org.apache.james.jmap.draft.JmapGuiceProbe; import org.apache.james.jmap.draft.model.ContinuationToken; +import org.apache.james.junit.categories.BasicFeature; import org.apache.james.utils.DataProbeImpl; import org.junit.After; import org.junit.Before; diff --git a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/ProvisioningTest.java b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/ProvisioningTest.java index 26bdf50..37795e1 100644 --- a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/ProvisioningTest.java +++ b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/ProvisioningTest.java @@ -34,8 +34,8 @@ import java.time.Duration; import org.apache.james.GuiceJamesServer; import org.apache.james.core.Username; -import org.apache.james.jmap.categories.BasicFeature; import org.apache.james.jmap.draft.JmapGuiceProbe; +import org.apache.james.junit.categories.BasicFeature; import org.apache.james.mailbox.DefaultMailboxes; import org.apache.james.modules.MailboxProbeImpl; import org.apache.james.util.concurrency.ConcurrentTestRunner; diff --git a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/VacationIntegrationTest.java b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/VacationIntegrationTest.java index a39a5e2..5f5df91 100644 --- a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/VacationIntegrationTest.java +++ b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/VacationIntegrationTest.java @@ -42,8 +42,8 @@ import org.apache.james.GuiceJamesServer; import org.apache.james.core.Username; import org.apache.james.jmap.api.vacation.AccountId; import org.apache.james.jmap.api.vacation.VacationPatch; -import org.apache.james.jmap.categories.BasicFeature; import org.apache.james.jmap.draft.JmapGuiceProbe; +import org.apache.james.junit.categories.BasicFeature; import org.apache.james.mailbox.DefaultMailboxes; import org.apache.james.mailbox.model.MailboxConstants; import org.apache.james.mailbox.probe.MailboxProbe; diff --git a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/VacationRelayIntegrationTest.java b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/VacationRelayIntegrationTest.java index 3bdb843..4402cb0 100644 --- a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/VacationRelayIntegrationTest.java +++ b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/VacationRelayIntegrationTest.java @@ -32,8 +32,8 @@ import org.apache.james.GuiceJamesServer; import org.apache.james.dnsservice.api.InMemoryDNSService; import org.apache.james.jmap.api.vacation.AccountId; import org.apache.james.jmap.api.vacation.VacationPatch; -import org.apache.james.jmap.categories.BasicFeature; import org.apache.james.jmap.draft.JmapGuiceProbe; +import org.apache.james.junit.categories.BasicFeature; import org.apache.james.mailbox.DefaultMailboxes; import org.apache.james.mailbox.model.MailboxConstants; import org.apache.james.mailbox.probe.MailboxProbe; diff --git a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/FilterTest.java b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/FilterTest.java index 2b377b0..a99995a 100644 --- a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/FilterTest.java +++ b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/FilterTest.java @@ -46,8 +46,8 @@ import java.util.Locale; import org.apache.james.GuiceJamesServer; import org.apache.james.jmap.AccessToken; import org.apache.james.jmap.JmapCommonRequests; -import org.apache.james.jmap.categories.BasicFeature; import org.apache.james.jmap.draft.JmapGuiceProbe; +import org.apache.james.junit.categories.BasicFeature; import org.apache.james.mailbox.model.MailboxId; import org.apache.james.mailbox.model.MailboxPath; import org.apache.james.modules.MailboxProbeImpl; diff --git a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/GetMailboxesMethodTest.java b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/GetMailboxesMethodTest.java index 3fef5aa..41d14b3 100644 --- a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/GetMailboxesMethodTest.java +++ b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/GetMailboxesMethodTest.java @@ -58,9 +58,9 @@ import org.apache.james.GuiceJamesServer; import org.apache.james.core.quota.QuotaCountLimit; import org.apache.james.core.quota.QuotaSizeLimit; import org.apache.james.jmap.AccessToken; -import org.apache.james.jmap.categories.BasicFeature; import org.apache.james.jmap.draft.JmapGuiceProbe; import org.apache.james.jmap.draft.model.mailbox.MailboxNamespace; +import org.apache.james.junit.categories.BasicFeature; import org.apache.james.mailbox.DefaultMailboxes; import org.apache.james.mailbox.MessageManager.AppendCommand; import org.apache.james.mailbox.model.MailboxACL.Rfc4314Rights; diff --git a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/GetMessageListMethodTest.java b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/GetMessageListMethodTest.java index 601d2ed..88f792e 100644 --- a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/GetMessageListMethodTest.java +++ b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/GetMessageListMethodTest.java @@ -62,10 +62,10 @@ import javax.mail.Flags; import org.apache.james.GuiceJamesServer; import org.apache.james.core.Username; import org.apache.james.jmap.AccessToken; -import org.apache.james.jmap.categories.BasicFeature; import org.apache.james.jmap.categories.CassandraAndElasticSearchCategory; import org.apache.james.jmap.draft.JmapGuiceProbe; import org.apache.james.jmap.draft.model.Number; +import org.apache.james.junit.categories.BasicFeature; import org.apache.james.mailbox.DefaultMailboxes; import org.apache.james.mailbox.FlagsBuilder; import org.apache.james.mailbox.MessageManager; diff --git a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/GetVacationResponseTest.java b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/GetVacationResponseTest.java index 2733f67..c8399ab 100644 --- a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/GetVacationResponseTest.java +++ b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/GetVacationResponseTest.java @@ -40,8 +40,8 @@ import org.apache.james.jmap.AccessToken; import org.apache.james.jmap.FixedDateZonedDateTimeProvider; import org.apache.james.jmap.api.vacation.AccountId; import org.apache.james.jmap.api.vacation.VacationPatch; -import org.apache.james.jmap.categories.BasicFeature; import org.apache.james.jmap.draft.JmapGuiceProbe; +import org.apache.james.junit.categories.BasicFeature; import org.apache.james.probe.DataProbe; import org.apache.james.util.date.ZonedDateTimeProvider; import org.apache.james.utils.DataProbeImpl; diff --git a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/QuotaMailingTest.java b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/QuotaMailingTest.java index 6412336..47acc19 100644 --- a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/QuotaMailingTest.java +++ b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/QuotaMailingTest.java @@ -40,8 +40,8 @@ import org.apache.james.GuiceJamesServer; import org.apache.james.core.Username; import org.apache.james.core.quota.QuotaSizeLimit; import org.apache.james.jmap.AccessToken; -import org.apache.james.jmap.categories.BasicFeature; import org.apache.james.jmap.draft.JmapGuiceProbe; +import org.apache.james.junit.categories.BasicFeature; import org.apache.james.mailbox.DefaultMailboxes; import org.apache.james.mailbox.model.MailboxConstants; import org.apache.james.mailbox.model.SerializableQuotaLimitValue; diff --git a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/SendMDNMethodTest.java b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/SendMDNMethodTest.java index 100023b..bc85911 100644 --- a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/SendMDNMethodTest.java +++ b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/SendMDNMethodTest.java @@ -49,8 +49,8 @@ import org.apache.james.core.Username; import org.apache.james.core.quota.QuotaSizeLimit; import org.apache.james.jmap.AccessToken; import org.apache.james.jmap.MessageAppender; -import org.apache.james.jmap.categories.BasicFeature; import org.apache.james.jmap.draft.JmapGuiceProbe; +import org.apache.james.junit.categories.BasicFeature; import org.apache.james.mailbox.DefaultMailboxes; import org.apache.james.mailbox.exception.MailboxException; import org.apache.james.mailbox.model.MailboxConstants; diff --git a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/SetMailboxesMethodTest.java b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/SetMailboxesMethodTest.java index 8a24c6f..ac6bb8c 100644 --- a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/SetMailboxesMethodTest.java +++ b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/SetMailboxesMethodTest.java @@ -49,9 +49,9 @@ import org.apache.commons.lang3.StringUtils; import org.apache.james.GuiceJamesServer; import org.apache.james.core.Username; import org.apache.james.jmap.AccessToken; -import org.apache.james.jmap.categories.BasicFeature; import org.apache.james.jmap.categories.CassandraAndElasticSearchCategory; import org.apache.james.jmap.draft.JmapGuiceProbe; +import org.apache.james.junit.categories.BasicFeature; import org.apache.james.mailbox.DefaultMailboxes; import org.apache.james.mailbox.MailboxManager; import org.apache.james.mailbox.model.MailboxACL; diff --git a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/SetMessagesMethodTest.java b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/SetMessagesMethodTest.java index 8ed6dcd..4c9bf25 100644 --- a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/SetMessagesMethodTest.java +++ b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/SetMessagesMethodTest.java @@ -78,9 +78,9 @@ import org.apache.james.core.quota.QuotaSizeLimit; import org.apache.james.jmap.AccessToken; import org.apache.james.jmap.HttpJmapAuthentication; import org.apache.james.jmap.MessageAppender; -import org.apache.james.jmap.categories.BasicFeature; import org.apache.james.jmap.draft.JmapGuiceProbe; import org.apache.james.jmap.draft.MessageIdProbe; +import org.apache.james.junit.categories.BasicFeature; import org.apache.james.mailbox.DefaultMailboxes; import org.apache.james.mailbox.FlagsBuilder; import org.apache.james.mailbox.Role; diff --git a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/SetVacationResponseTest.java b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/SetVacationResponseTest.java index 914d26e..3db1858 100644 --- a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/SetVacationResponseTest.java +++ b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/draft/methods/integration/SetVacationResponseTest.java @@ -39,8 +39,8 @@ import org.apache.james.jmap.AccessToken; import org.apache.james.jmap.api.vacation.AccountId; import org.apache.james.jmap.api.vacation.Vacation; import org.apache.james.jmap.api.vacation.VacationPatch; -import org.apache.james.jmap.categories.BasicFeature; import org.apache.james.jmap.draft.JmapGuiceProbe; +import org.apache.james.junit.categories.BasicFeature; import org.apache.james.util.ValuePatch; import org.apache.james.utils.DataProbeImpl; import org.junit.After; diff --git a/server/protocols/jmap-draft-integration-testing/rabbitmq-jmap-draft-integration-testing/pom.xml b/server/protocols/jmap-draft-integration-testing/rabbitmq-jmap-draft-integration-testing/pom.xml index 6dea7f9..904ff8b 100644 --- a/server/protocols/jmap-draft-integration-testing/rabbitmq-jmap-draft-integration-testing/pom.xml +++ b/server/protocols/jmap-draft-integration-testing/rabbitmq-jmap-draft-integration-testing/pom.xml @@ -173,7 +173,7 @@ <reuseForks>true</reuseForks> <!-- Fail tests longer than 2 hours, prevent form random locking tests --> <forkedProcessTimeoutInSeconds>7200</forkedProcessTimeoutInSeconds> - <groups combine.self="override">org.apache.james.jmap.categories.BasicFeature,org.apache.james.jmap.categories.EnableCucumber</groups> + <groups combine.self="override">org.apache.james.junit.categories.BasicFeature,org.apache.james.jmap.categories.EnableCucumber</groups> </configuration> </plugin> </plugins> diff --git a/server/testing/src/main/java/org/apache/james/junit/categories/BasicFeature.java b/server/testing/src/main/java/org/apache/james/junit/categories/BasicFeature.java new file mode 100644 index 0000000..655f7db --- /dev/null +++ b/server/testing/src/main/java/org/apache/james/junit/categories/BasicFeature.java @@ -0,0 +1,27 @@ +/**************************************************************** + * 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.junit.categories; + +/** + * Category marker for Junit 4 conditional execution + * Marks tests that should be run on every product + */ +public interface BasicFeature { +} --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org