This sample shows how to use dynamic endpoints in Citrus. Read about this feature in reference guide
The todo-list sample application provides a REST API for managing todo entries. Usually we would define Http client endpoint components in Citrus configuration in order to connect to the REST API server endpoint.
In this sample we use dynamic endpoint uri instead.
As you can see the send test action defines the Http request uri as endpoint. Citrus will automatically create a Http client component out of this endpoint uri. Also you can use this approach when receiving the response:
The endpoint uri can hold any Citrus endpoint type and is also capable of handling endpoint properties. Let us use that in an JMS dynamic endpoint.
The JMS endpoint uri defines the queue name and a connection factory as uri parameter. This connection factory is defined as Spring bean in the configuration.
This is how to use dynamic endpoint components in Citrus.
You can run the sample on your localhost in order to see Citrus in action. Read the instructions how to run the sample.