Questions tagged [greenmail]

GreenMail is an open source suite of lightweight and sand boxed email servers supporting SMTP, POP3 and IMAP.

GreenMail is an open source, intuitive and easy-to-use test suite of email servers for testing purposes.

Typical use cases include mail integration testing or a lightweight sand boxed mail server for development.

GreenMail is the first and only library that offers a test framework for both receiving and retrieving emails from Java.

http://www.icegreen.com/greenmail/

36 questions
0
votes
0 answers

java.io.EOFException:Did not receive . error when sending attachments greenmail test

I'm writing test for my process mail app. I'm using greenmail for testing and everything works just fine when I send mime multipart message( html or text). But when I try to send a message with an attachment(because I need a message with attachment…
George
  • 15
  • 7
0
votes
1 answer

Junit mokito util.properties show null after moking

I write a email testing using greenmail and JUNIT with mokito but when I use when(emailproperties.getUsername()).thenReturn("abc@gmail.com"); show null Here is my code public class EmailServiceImplTest { @InjectMocks EmailServiceImpl…
0
votes
1 answer

greenmail server not receiving the mail

My Unit Test for class for email through Greenmail public class GreenMailTest { private GreenMail greenMail; private EmailServiceImpl emailService = new EmailServiceImpl(); private MessageTemplateService messageTemplateService; private…
0
votes
2 answers

Testing for sent email - Dumbster and greenmail not catching sent JavaMail

I'm trying to integrate Dumbster to test our JavaMail based notifier for outgoing emails. The emails get sent but in my test Dumbster does not pick them up. I'm not sure if I need additional configuration to make this work buton the dumbster…
Pete
  • 10,720
  • 25
  • 94
  • 139
-1
votes
1 answer

Test if the mail sent sucessfully using Java

I have a mailingService who sends the mail: @Component public class MailingServiceImpl implements MailingService{ @Autowired JavaMailSenderImpl mailSender; @Override public void sendMail(String sender, String receiver, String…
lpkej
  • 445
  • 6
  • 23
-2
votes
1 answer

Greenmail WebApp server API

i want to use greenmail as a webapp. is there a way in java to dynamically create user accounts on the greenmail server? javamail does not contain api for creating users on mail server. is there a rest i can use or anything in java code for…
oded
  • 9
  • 4
1 2
3