Integration Testing for Microprofile / OpenLiberty

246 Views Asked by At

I have joined a new project who are using Microprofile/Openliberty. I have searched around quite a bit on the internet and it doesnt look like there is a straight forward way to write integration tests using this framework.

Some tutorials pointed me towards arquillian etc which can only run in a maven build so no support for running the tests directly from Intellij/IDE. Others need a full installation of Openliberty on your drive.

I am ideally looking for some thing similar to @SpringBootTest. And if such functionality isnt available then at a minimum I need a way to hit the API Endpoints of my app using a test HTTP client where I can ensure that the JSON I send to the endpoint is parsed correctly and the query/path params are correctly interpreted etc. The deeper part of the App I can just mock.

Is there a programmatic or otherwise way of doing this using the microprofile/openliberty framework?

Thanks in Advance :)

0

There are 0 best solutions below