By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Why mocks in business applications often do more harm than good
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Software > Why mocks in business applications often do more harm than good
Software

Why mocks in business applications often do more harm than good

News Room
Last updated: 2026/06/04 at 9:37 AM
News Room Published 4 June 2026
Share
Why mocks in business applications often do more harm than good
SHARE

  1. Why mocks in business applications often do more harm than good

    • Mocks hide real system behavior

  2. Good reasons to test without mocks

  3. Create the basis

  4. Conclusion

I – and probably many others too – have already stumbled upon this idea. At first glance, mocks offer a simple solution: you just have to simulate the relevant method calls, you can write a test relatively quickly and achieve high test coverage. However, this is where the problem lies.

A use case in a business application rarely consists of an atomically programmed piece, such as a sorting algorithm, but rather of a sequence of several steps that take place in different components.

A bug is reported from production but all tests are green? Or refactorings are carried out and force the tests to be rebuilt on a large scale at the same time – so that in the end it remains unclear whether the refactoring was even error-free? Such situations often indicate tests with heavy use of mocks. This article uses a concrete project example to show whether and how you can do without mocks in backend tests of business applications, what advantages this brings and how well-structured tests can still be implemented.

The use of Mockito then ensures that the tests are decoupled from reality. There is a discrepancy between what the tests show and the actual behavior of the application.

That was the excerpt from our heise-Plus article “Why mocks in business applications often do more harm than good”. With a heise Plus subscription you can read the entire article.



Unfortunately, this link is no longer valid.

Links to gifted items will be invalid if they are older than 7 days or have been accessed too often.


You need a heise+ package to read this article. Try it now for a week without obligation – without obligation!

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article 10 MCP Servers for DevOps | Computer Week 10 MCP Servers for DevOps | Computer Week
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

10 MCP Servers for DevOps | Computer Week
10 MCP Servers for DevOps | Computer Week
News
Last hours to participate in the draw for a Dreo Humidifier 713S! Only for Xataka Xtra members
Last hours to participate in the draw for a Dreo Humidifier 713S! Only for Xataka Xtra members
Gaming
512 GB, 7,500 mAh battery, waterproof and robust, all at half the price 🚀
512 GB, 7,500 mAh battery, waterproof and robust, all at half the price 🚀
Mobile
Meta deploys its AI agent on WhatsApp and Instagram
Meta deploys its AI agent on WhatsApp and Instagram
Computing

You Might also Like

Operation KRATOS 2: Europol reports 29 arrests against illegal streaming
Software

Operation KRATOS 2: Europol reports 29 arrests against illegal streaming

3 Min Read
Alphabet is seeking  billion in new capital for AI investments
Software

Alphabet is seeking $80 billion in new capital for AI investments

4 Min Read
SpaceX IPO expected to raise  billion
Software

SpaceX IPO expected to raise $75 billion

4 Min Read
DuckDuckGo: AI-free search is booming – now the standard
Software

DuckDuckGo: AI-free search is booming – now the standard

2 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?