---
title: "#mocking articles | Hashnode"
description: "Explore 146 articles tagged #mocking on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/mocking"
---

Tag

# #mocking

146 posts · 3 followers

[Powerduck](https://hashnode.com/@powerduck) · [5d ago](https://hashnode.com/posts/wiremock-xpath-xml-matching-soap-legacy/6aed9444978b73ee75578cbe)

### [Matching XML and SOAP Requests with XPath When Two Bodies Look Alike](https://blogs.powerduck.com/wiremock-xpath-xml-matching-soap-legacy?utm_source=hashnode&utm_medium=feed)

How XPath matching distinguishes near-identical SOAP bodies while ignoring irrelevant formatting.

5 min read · [blogs.powerduck.com](https://blogs.powerduck.com/wiremock-xpath-xml-matching-soap-legacy?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [5d ago](https://hashnode.com/posts/mockoon-https-tls-cors-browser-frontend/6aed934a0aa60f426d979355)

### [Local HTTPS and CORS: Pointing a Browser Frontend at a Mockoon Server](https://blogs.powerduck.com/mockoon-https-tls-cors-browser-frontend?utm_source=hashnode&utm_medium=feed)

How to secure a local Mockoon server with trusted HTTPS and the right CORS headers.

5 min read · [blogs.powerduck.com](https://blogs.powerduck.com/mockoon-https-tls-cors-browser-frontend?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/mockoon-https-tls-cors-browser-frontend/6aed934a0aa60f426d979355)

[Powerduck](https://hashnode.com/@powerduck) · [5d ago](https://hashnode.com/posts/mocking-410-gone-retired-resource-vs-404/6aed8d2ea12d9518ae68fe6d)

### [Mocking a 410 Gone for a Retired Resource vs a Plain 404](https://blogs.powerduck.com/mocking-410-gone-retired-resource-vs-404?utm_source=hashnode&utm_medium=feed)

Why a retired resource should return 410, not 404, and how to mock the permanent response.

5 min read · [blogs.powerduck.com](https://blogs.powerduck.com/mocking-410-gone-retired-resource-vs-404?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Nov 4](https://hashnode.com/posts/wiremock-stub-priority-two-mappings-match/6aeaf1dd326b7d7c29140b5e)

### [Stub Priority When Two WireMock Mappings Match the Same Request](https://blogs.powerduck.com/wiremock-stub-priority-two-mappings-match?utm_source=hashnode&utm_medium=feed)

Quick guidance on stub priority when two wiremock mappings match the same request.

5 min read · [blogs.powerduck.com](https://blogs.powerduck.com/wiremock-stub-priority-two-mappings-match?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Nov 4](https://hashnode.com/posts/mockoon-data-buckets-vs-spec-state/6aeaf1535f4d6230df1db45f)

### [Mockoon Data Buckets: Shared State Across Routes vs Spec-Based State](https://blogs.powerduck.com/mockoon-data-buckets-vs-spec-state?utm_source=hashnode&utm_medium=feed)

Quick guidance on mockoon data buckets: shared state across routes vs spec-based state.

5 min read · [blogs.powerduck.com](https://blogs.powerduck.com/mockoon-data-buckets-vs-spec-state?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Nov 4](https://hashnode.com/posts/mocking-circuit-breaker-503-half-open/6aeaeaccad8c01c58142f8be)

### [Mocking a Circuit Breaker: 503 While Open, Then a Half-Open Recovery](https://blogs.powerduck.com/mocking-circuit-breaker-503-half-open?utm_source=hashnode&utm_medium=feed)

Quick guidance on mocking a circuit breaker: 503 while open, then a half-open recovery.

6 min read · [blogs.powerduck.com](https://blogs.powerduck.com/mocking-circuit-breaker-503-half-open?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Nov 3](https://hashnode.com/posts/wiremock-json-path-match-wrong-request/6ae9966262de9de9f3c2e20d)

### [A Stub Matching on JSON Path That Fires on the Wrong Request](https://blogs.powerduck.com/wiremock-json-path-match-wrong-request?utm_source=hashnode&utm_medium=feed)

A Stub Matching on JSON Path That Fires on the Wrong Request — a practical, contract-based look at the failure mode and how to handle it.

6 min read · [blogs.powerduck.com](https://blogs.powerduck.com/wiremock-json-path-match-wrong-request?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Nov 3](https://hashnode.com/posts/mock-health-check-readiness-probe/6ae995e2b35794b17b9fa1f4)

### [Mocking a Health Check and Readiness Probe That Fails Until the Stub Is Ready](https://blogs.powerduck.com/mock-health-check-readiness-probe?utm_source=hashnode&utm_medium=feed)

Mocking a Health Check and Readiness Probe That Fails Until the Stub Is Ready — a practical, contract-based look at the failure mode and how to handle it.

5 min read · [blogs.powerduck.com](https://blogs.powerduck.com/mock-health-check-readiness-probe?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Nov 3](https://hashnode.com/posts/mocking-file-upload-413-vs-201-size/6ae98f997442d01ac6e8658e)

### [Mocking File Uploads: Returning 413 for an Oversized Payload and 201 on Success](https://blogs.powerduck.com/mocking-file-upload-413-vs-201-size?utm_source=hashnode&utm_medium=feed)

Mocking File Uploads: Returning 413 for an Oversized Payload and 201 on Success — a practical, contract-based look at the failure mode and how to handle it.

5 min read · [blogs.powerduck.com](https://blogs.powerduck.com/mocking-file-upload-413-vs-201-size?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Nov 3](https://hashnode.com/posts/wiremock-verify-assertions-vs-spec-checks/6ae9701c290b9bd504c42214)

### [WireMock's verify() Assertions vs Independent Spec-Based Checks](https://blogs.powerduck.com/wiremock-verify-assertions-vs-spec-checks?utm_source=hashnode&utm_medium=feed)

How WireMock verify asserts an interaction and why an independent spec-based check is needed to validate the response.

5 min read · [blogs.powerduck.com](https://blogs.powerduck.com/wiremock-verify-assertions-vs-spec-checks?utm_source=hashnode&utm_medium=feed)
