Class AllOfBody


public class AllOfBody extends Body<List<Body>>
A composite request-body matcher that matches only when all of its component body matchers match the same request body.

This composes existing body matcher types without changing their individual semantics — for example a jsonPath matcher, a jsonSchema matcher and a regex matcher can be combined so a request body must satisfy every one of them. It is accepted anywhere a body matcher is accepted.

An empty composition matches every request body. The composite honours the usual not (negate the whole conjunction) and optional (an absent request body matches) flags; each component body keeps its own not flag.

Author:
jamesdbloom