O'Reilly logo

jQuery Design Patterns by Thodoris Greasidis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Mock Object Pattern

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required