My email missed the second paragraph, so, to clarify: I wanted to provide
you with a link to the tests we have on our own code base. I believe you
can use this as a reference for writing your own test/reproducer/etc.

On Fri, Feb 24, 2023 at 10:55 AM Otavio Rodolfo Piske <angusyo...@gmail.com>
wrote:

> Hi folks, sorry for the late reply. Things are a bit busy at the moment.
>
> They are available here:
> https://github.com/apache/camel/tree/main/components/camel-kafka/src/test/java/org/apache/camel/component/kafka/integration/pause.
> One of them is a simple Pausable consumer example whereas the other shows
> how to use the Circuit Breaker with it.
>
> I think you can use those tests as the baseline for the one you are
> working on.
>
> Obs.: keep in mind that I pasted the link for the main branch (Camel 4).
> If you are working on Camel 3.x, please make sure to refer to the correct
> branch.
>
> Kind regards
>
>
> On Mon, Feb 13, 2023 at 10:09 AM Chris Deeney
> <chris.dee...@virginwines.co.uk.invalid> wrote:
>
>> Thanks Claus, I do appreciate you guys are very busy!
>>
>> Chris.
>> ________________________________
>> From: Claus Ibsen <claus.ib...@gmail.com>
>> Sent: 11 February 2023 08:04
>> To: users@camel.apache.org <users@camel.apache.org>
>> Subject: Re: Pausable Kafka Consumer Unit Test
>>
>> CAUTION: This email originated from outside the organisation. Do not
>> click links or open attachments unless you recognize the sender and know
>> the content is safe.
>>
>> Hi
>>
>> When there is a lack of reply then its often as many of us are busy and
>> dont always have time to help out when it takes longer time to do so.
>> No reply does not mean we have not read the mail.
>>
>> At this time I can only suggest to look at the existing unit tests in
>> camel-kafka.
>>
>> Otavio whom is working on camel-kafka is busy with other things at this
>> moment, but he and others can reply back here when they get more time
>> again.
>>
>>
>> On Wed, Feb 8, 2023 at 4:36 PM Chris Deeney
>> <chris.dee...@virginwines.co.uk.invalid> wrote:
>>
>> > Hi there,
>> >
>> > I'm currently trying to write a unit test that simulates when an
>> endpoint
>> > is down triggering the pausable state (via a ConnectException) however
>> the
>> > Camel Context doesn't seem to be performing the 'pausable' poll loop
>> > (KafkaConsumerListener) i.e. "The consumer is not yet resumable". This
>> is
>> > Camel version 3.18.1.
>> >
>> > Could you give an example of how to correctly implement a unit test for
>> > this scenario or any pointers in the right direction would be greatly
>> > appreciated!
>> >
>> > Many thanks!
>> >
>> > Chris.
>> >
>> >         [Virgin Wines] <https://www.virginwines.co.uk>          Chris
>> > Deeney | Java Developer
>> >
>> > Tel: 0343 224 1001
>> > Email: chris.dee...@virginwines.co.uk<mailto:
>> > chris.dee...@virginwines.co.uk>
>> >
>> >
>> >         [Hand Picked by us, loved by you!]              [2022 Specialist
>> > Online Drinks Retailer of the Year]
>> >
>> > DRINKING IS ONLY FUN WHEN YOU DON’T OVERDO IT
>> > Learn more at: www.virginwines.co.uk/drinkresponsibly<<
>> http://www.virginwines.co.uk/drinkresponsibly<>
>> > https://www.virginwines.co.uk/drinkresponsibly>
>> > Virgin Wines, St. James' Mill, Whitefriars, Norwich NR3 1TN, UK
>> Registered
>> > in England No 3800762. VAT No 394 8318 54
>> >
>> > E-MAIL DISCLAIMER: This e-mail and any files transmitted with it are
>> > confidential and are intended solely for the use of the individual or
>> > entity to whom they are addressed. If you are not the original
>> recipient or
>> > the person responsible for delivering the e-mail to the intended
>> recipient,
>> > be advised that you have received the e-mail in error and that any use,
>> > dissemination, forwarding, printing or copying of this e-mail are
>> strictly
>> > prohibited. Virgin Wines will not be liable for direct, indirect or
>> > consequential damages arising from alterations of the contents of this
>> > message by a third party or as a result of any virus being passed on. If
>> > you have received this e-mail in error please notify
>> > postmas...@virginwines.co.uk | Company Name: Virgin Wine Online Ltd. |
>> > Company Registration No.: 03800762
>> >
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> @davsclaus
>> Camel in Action 2: https://www.manning.com/ibsen2
>>
>
>
> --
> Otavio R. Piske
> http://orpiske.net
>


-- 
Otavio R. Piske
http://orpiske.net

Reply via email to