Skip to content

Feature request: add verifyNoRequests(MicrocksRequest request) helper #292

@lukaszgyg

Description

@lukaszgyg

Feature summary

Add a verifyNoRequests(MicrocksRequest request) helper to MicrocksClient.

Motivation

MicrocksClient already exposes filtered request accessors such as:

  • verify(request)
  • getRecordedRequests(request)
  • getRecordedRequestCount(request)
  • getLastRecordedRequest(request)

A negative assertion for a filtered request matcher is currently missing.

This makes simple assertions more verbose in tests where we want to express that no matching request was observed for a specific method/path/query/header/body combination.

Proposed API

client.verifyNoRequests(
    request()
        .withMethod("DELETE")
        .withPath("/orders/123")
);

Why this is useful

This keeps the API symmetric and avoids manual filtering of recorded requests in test code.

Scope

This is intended as a small additive helper only. It should reuse the existing request matching / recorded request retrieval logic and not introduce any new matching model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions