Application test

Consider the following command:

    gradle -Dspring.profiles.active=production bootRun

If we start up the application issuing the preceding command and fire up the browser to the URL, http://localhost:8080/pi/123, we will get a fat error message on the browser screen. Ouch...

It says Internal Server Error, status=500 or something similar. That is because our code wants to connect to the backing services, but we do not have any yet. To have some to test the application on this level, we should create the backing services or at least something that mocks them. The easiest way is to use the soapUI program.

The soapUI is a Java program available from https://www.soapui.org/. There is an open source and free version of it, and there ...

Get Java 9 Programming By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.