---
title: "Discussion on \"API Mocking: Essential and Redundant\" | Hashnode"
description: "Discussion on \"API Mocking: Essential and Redundant\". Is API mocking in unit tests important or does it do nothing? I think the answer is a bit more nuanced but we do need such tests to reduce daily churn"
url: "https://hashnode.com/posts/api-mocking-essential-and-redundant/6358126259937b8f7ecaec6e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [API Mocking: Essential and Redundant](https://debugagent.com/api-mocking-essential-and-redundant?utm_source=hashnode&utm_medium=feed)

Is API mocking in unit tests important or does it do nothing? I think the answer is a bit more nuanced but we do need such tests to reduce daily churn

Oct 25, 2022 · 5 min read · debugagent.com  
Updated Nov 2, 2022  
Read the article

-   [#testing](https://hashnode.com/tag/testing)
-   [#test-driven-development](https://hashnode.com/tag/test-driven-development)
-   [#mocking](https://hashnode.com/tag/mocking)
-   [#java](https://hashnode.com/tag/java)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Shai Almog](https://hashnode.com/@codenameone)

@codenameone

  
[View profile](https://hashnode.com/@codenameone)

25 years ago I was lucky. I faced my debugging ignorance. It's a skill we don't learn at school. Hopefully I can help you reach a similar ep

Entrepreneur, author, blogger, open source hacker, speaker, Java rockstar, developer advocate and more. ex-Sun/Oracle guy with 30 years of professional development experience. Shai built virtual machines, development tools, mobile phone environments, banking systems, startup/enterprise backends, user interfaces, development frameworks and much more. Shai is an award winning highly rated speaker with a knack for engaging the audience and deep technical chops.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
