How does a stub differ from a mock in integration testing?
- A mock is a complete, functional implementation of a component
- A mock is only used in object-oriented programming
- A stub is a simplified implementation of a component with fixed behavior
- A stub is used for unit testing, while a mock is used for integration testing
In integration testing, a stub is a simplified version of a component with predetermined behavior, while a mock is a complete, functional implementation with expected behavior.
Loading...
Related Quiz
- A financial service is transmitting sensitive data over the web. Which encryption technique should be prioritized for data protection?
- A development team needs to build an API for a highly dynamic application with many changing data requirements. Which API style should they prefer?
- _______ is a protocol that can be used with SOAP for reliable message delivery.
- SOAP services use _______ to define the structure of the request and response messages.
- What is a breakpoint in the context of debugging web services?