vendredi 9 novembre 2018

Testing multiple servers with spring boot test

I have a multi-module maven project with a spring service in each module. The problem I have is that I want to create a test with multiple servers.

So currently I have a couple of tests that are actually starting a server and doing some requests to it using the annotation @SpringBootTest. And preferably I would like to test multiple servers with the same approach as it gives me the opportunity to mock for example the database connections. And I can of course mock parts of the HTTP calls if needed so that the servers can "communicate".

So I guess the question is: Is it possible to test multiple servers in this way?

Aucun commentaire:

Enregistrer un commentaire