You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/03/02 11:43:35 UTC

[GitHub] [camel-quarkus] aldettinger commented on a change in pull request #3585: Add test coverage for consuming email with attachments

aldettinger commented on a change in pull request #3585:
URL: https://github.com/apache/camel-quarkus/pull/3585#discussion_r817611990



##########
File path: integration-tests/mail/src/main/java/org/apache/camel/quarkus/component/mail/MockMailbox.java
##########
@@ -16,40 +16,90 @@
  */
 package org.apache.camel.quarkus.component.mail;
 
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.util.Properties;
+
 import javax.enterprise.context.ApplicationScoped;
+import javax.mail.BodyPart;
+import javax.mail.Message;
+import javax.mail.Multipart;
+import javax.mail.Session;
+import javax.mail.internet.InternetAddress;
+import javax.mail.internet.MimeBodyPart;
+import javax.mail.internet.MimeMessage;
+import javax.mail.internet.MimeMultipart;
+import javax.ws.rs.DELETE;
 import javax.ws.rs.GET;
+import javax.ws.rs.POST;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
 
 import org.jvnet.mock_javamail.Mailbox;
 
-@Path("/mock/{username}")
+@Path("/mock")
 @ApplicationScoped
 public class MockMailbox {
 
+    @DELETE
+    @Path("/clear")
+    @Produces(MediaType.TEXT_PLAIN)

Review comment:
       It is possible to @Produces with a void method ?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org