JUnit CamundaTaskListClient

Hi,

My scenario is as follows:
I have a human task and i created a REST API in my Spring Boot app to complete the task. That API uses the CamundaTaskListClient.

My tests are annotated with @SpringBootTest and @ZeebeSpringTest.

Is the tasklist available as part of the Zeebe test engine and if yes, how can I configure it, i.e. what should be my properties in the application-test.yaml file ?

My goal is to start the process in the test and simulate the completion by calling the REST API I created.

Hi @aowss - I assume you’re using Zeebe Process Test. That utility doesn’t integrate with Tasklist, but I think you can use the job assertions to look for user tasks and ensure they were activated.

That doesn’t test completion via the API, though, which will be tricky because Zeebe Process Test uses an embedded Zeebe engine without any additional products like Operate and Tasklist. Honestly, I’m not sure Zeebe Process Test is the right tool for an e2e test like that … I’d love to hear if anyone else has thoughts!

Thanks for your response.

What would you use for these types of test?

Bear in mind that in those tests, that we run using JUnit, the external APIs are mocked ( using WireMock ), the external queues use an in-memory message broker and the external DB if needed would use an in-memory version or a test container.

So these are not really e2e tests.
The e2e tests would not use any in-memory component, and certainly not an in-memory Zeebe engine.