Mailserver layout for testing integration within the load

I have a web application that I am currently testing at different levels (unit tests, integration tests in a container for cargo, working with tomcat, htmlunit, etc.), and now I am faced with a problem.

With some input, my web application generates a zip file that I can download after the creation process has been completed. At least there was no problem testing various use cases with htmlunit and a freight container that runs all the applications and backends needed inside a single cat.

The new version of my web application sends (javax.mail) the generated file to the configured email address (I sent this mail manually before), but I can’t understand how to integrate-test what it sends and if it succeeded.

Is there any mock-mailserver or sth that I can easily run inside the container for testing the load, configure it in my application and approve all received letters?

I don’t want to use a static mail server that works outside of my test area, because there are different environments in which these tests should be performed internally (development, hudson, integration-environment, etc.), and I will depend on it conditions and availability.

If not, could there be some other solutions? many thanks.

+3
1

Dumbster. SMTP- API, , , .

. ( )

+3

Source: https://habr.com/ru/post/1786910/


All Articles