Abstract
Previous chapters explored how to encapsulate indirect input and output into classes providing those services and elaborated on the usefulness of test doubles capable of simulating those services during a unit test. This chapter introduces the service locator as a way to manage those services.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Meszaros, Gerard, xUnit Test Patterns: Refactoring Test Code, Addison Wesley, 2007, p. 686
- 2.
Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides, Design Patterns: Elements of Reusable Object-Oriented Software, Addison-Wesley, 1994, p. 18
- 3.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2021 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature
About this chapter
Cite this chapter
McDonough, J.E. (2021). Service Locator. In: Automated Unit Testing with ABAP. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-6951-0_9
Download citation
DOI: https://doi.org/10.1007/978-1-4842-6951-0_9
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-6950-3
Online ISBN: 978-1-4842-6951-0
eBook Packages: Business and ManagementApress Access BooksBusiness and Management (R0)