Announcement Announcement Module
Collapse
No announcement yet.
RetryTemplate and JUnit test Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • RetryTemplate and JUnit test

    Hi all
    i have a tasklet that, as part of its execution, invokes a RetryTemplate.
    I am trying to write a Mock test for that, but i cannot get around mocking the retry logic, simply because RetryTemplate tries to execute a RetryCallback again if it raises an exception..
    while in my mock, if the retryCallback raises an exception, the whole test fails

    could anyone assist pls?

    w/kindest regards
    marco

  • #2
    Can you share the code for the unit test.

    Comment

    Working...
    X