Package org.mockserver.imports
Class ImportWarning
java.lang.Object
org.mockserver.imports.ImportWarning
A structured, machine-readable warning emitted by a migration importer
(
WireMockImporter, MountebankImporter, MockoonImporter) when
a source construct cannot be faithfully mapped onto a MockServer expectation.
Every unmappable construct produces one of these rather than being silently dropped, so a one-shot migration surfaces exactly what did not carry over. The warnings are serialized into the import endpoint's response body alongside the expectations that were imported.
Fields:
item— a stable locator for the source element (e.g."stub[2]","imposter tcp:4545","route GET /users response[1]").construct— the name of the foreign construct that was not (fully) mapped (e.g."predicate matchesXPath","fault CONNECTION_RESET_BY_PEER").detail— a human-readable explanation of what happened (dropped, approximated, or the whole item skipped).
-
Constructor Summary
Constructors -
Method Summary