You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2024/02/03 08:35:44 UTC
(camel) 02/03: CAMEL-20389: fixed incorrectly named tests on camel-google-mail
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit c5e552eb0bc7b264790d4b1cd3543632d57c95db
Author: Otavio R. Piske <an...@gmail.com>
AuthorDate: Sat Feb 3 09:04:53 2024 +0100
CAMEL-20389: fixed incorrectly named tests on camel-google-mail
Signed-off-by: Otavio R. Piske <an...@gmail.com>
---
...mConsumerIntegrationTest.java => GoogleMailStreamConsumerIT.java} | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamConsumerIntegrationTest.java b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamConsumerIT.java
similarity index 82%
rename from components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamConsumerIntegrationTest.java
rename to components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamConsumerIT.java
index 462af8e0d97..dffc4e8aab8 100644
--- a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamConsumerIntegrationTest.java
+++ b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamConsumerIT.java
@@ -19,8 +19,11 @@ package org.apache.camel.component.google.mail.stream;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIf;
-public class GoogleMailStreamConsumerIntegrationTest extends AbstractGoogleMailStreamTestSupport {
+@EnabledIf(value = "org.apache.camel.component.google.mail.AbstractGoogleMailTestSupport#hasCredentials",
+ disabledReason = "Google Mail credentials were not provided")
+public class GoogleMailStreamConsumerIT extends AbstractGoogleMailStreamTestSupport {
@Test
public void testConsumePrefixedMessages() throws Exception {