Skip to content
Sharp

Testing · interview question

In the context of a Java e-commerce application, what is a potential pitfall of using real external payment systems in integration tests?

Multiple choiceHardchapter-10-curatedpremiumtestingunit-testing-with-junit
Choose one answer
Answer and explanation

Correct answer

C. Tests may incur unwanted costs

Why

Using real external payment systems in integration tests can incur unwanted costs due to transaction fees or charges for API usage. It's often better to use mock services that simulate the behavior of these systems to avoid such pitfalls.

Test yourself on Testing

A free test with instant, explained results. No account needed.

Start free test
All Testing questions →