meet-eat / meet-eat-server

Backend implementation of Meet & Eat.
MIT License
0 stars 0 forks source link

[FEATURE] Mock EmailServiceTest #3

Open gstuer opened 4 years ago

gstuer commented 4 years ago

Circumstances The EmailServiceTest class sends real emails with a JavaMailer instance. Therefore, testing the sent Strings is impossible.

Recommended Solution Mock the JavaMailer and return the String instead of delivering it to the SMTP server.

Alternatives

holtvogt commented 4 years ago

Mocking the JavaMailer sounds like the simplest solution.