Trần Tiến Đức created JAMES-2666:
------------------------------------

             Summary: Integration tests for EventDeadLetter
                 Key: JAMES-2666
                 URL: https://issues.apache.org/jira/browse/JAMES-2666
             Project: James Server
          Issue Type: Improvement
            Reporter: Trần Tiến Đức


In webAdmin integration test, write a DeadLetterTest

You will:

- Create a stateful listener that fails 'n' times on a given eventId, then 
succeeds and allow retrieving the list of successfully processed eventIds.

- Load this listener into a James server
{code:java}
When an event is initially processed
Then the processing of this event is failing
And I can retrieve this event in the EventDeadLetter using webAdmin{code}
 
{code:java}
Given an event is initially processed
And the processing of this event is failing
When I do reprocess this event stored in EventDeadLetter
Then The new processing succeed (n = num-retry){code}
 
{code:java}
Given an event is initially processed
And the processing of this event is failing
When I do reprocess this event stored in EventDeadLetter
Then The still fails (n > 2 * num-retry)
And the event is still in deadLetter{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to