Skip to content

Add CapturingTransport#captureRequestsAndClear #15897

@jasontedor

Description

@jasontedor

We use the pattern of

CapturingTransport.CapturedRequest[] capturedRequests = transport.capturedRequests();
transport.clear()

where transport is a CapturingTransport throughout our test suite. This pattern could be simplified by adding a dedicated CapturingTransport#captureRequestsAndClear method.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions