Hi Jan, I don't think Citrus has recording support, it can be configured much like WireMock using Java DSL or using XML[1]
zoran [1] https://citrusframework.org/citrus/reference/2.8.0/html/index.html#http-rest-server On Wed, Oct 9, 2019 at 11:23 AM Jan Bouška <bouska....@gmail.com> wrote: > > Hi Omar, Zoran > > To answer your question Omar. Responses are recorded by wiremock itselves. > In first run it will call real REST API. In second, third... run it will > reuse recorded responses. > > Zoran, this is just a PoC. Architecture can be changed. I know Citrus > framework but I haven't use it yet. Does it supports also recording like > the wiremock framework? > > Kind regards > Jan. > > > st 9. 10. 2019 v 11:02 odesílatel Zoran Regvart <zo...@regvart.com> napsal: > > > Hi Jan, > > I like WireMock I've used it extensively. In general I don't think > > test class hierarchies are a good idea, I'd prefer composition instead > > of inheritance. Have you seen the Citrus Framework[1]? > > > > zoran > > > > [1] https://citrusframework.org/ > > > > On Wed, Oct 9, 2019 at 9:46 AM Jan Bouška <bouska....@gmail.com> wrote: > > > > > > Hi folks, > > > Recently I was thinking about integration tests in Camel project. Of > > > course, we have camel-testcontainers component [1] which can help with > > > integration testing very much using docker containers. But what about > > > services which does not have docker image? For example we can't have > > > facebook-docker image. > > > > > > Most of this third party services are communicating through REST API. I > > am > > > working on camel-wiremock-test component [2] [3] which is able to record > > > REST API responses and playback during the test. > > > > > > Can you check my PoC with camel-jira [4]? What you think about this > > > approach? Does it worth it? > > > > > > Thanks for your input. > > > > > > Have a nice day. > > > Jan > > > > > > [1] > > > > > https://github.com/apache/camel/tree/master/components/camel-testcontainers > > > [2] > > > > > https://github.com/bouskaJ/camel/tree/camel-wiremock/components/camel-wiremock-test > > > [3] http://wiremock.org/ > > > [4] > > > > > https://github.com/bouskaJ/camel/blob/camel-wiremock/components/camel-jira/src/test/java/org/apache/camel/component/jira/it/JiraProducerItTest.java > > > > > > > > -- > > Zoran Regvart > > -- Zoran Regvart