In this chapter we will showcase the Mock Object Pattern, a pattern to facilitate the development of applications without actually being part of the final implementation. We will learn how to design, create and use this industry-standard design pattern in order to coordinate and complete the development of multi-part jQuery applications faster. We will analyze the characteristics that a proper Mock Object should have and understand how they can be used as representative use cases and even as test cases for our code.
We will see how good application architecture makes it easier for us to use Mock Objects & Services by matching individual parts of the application, and also realize the benefits of using them during development. By the end of this chapter, we will be able to create Mock Objects & Services to accelerate the implementation of our application and also to get a sense of the overall functionality long before all of its parts are completed.
In...