Industrial Logic -> Catalogs -> Activity Catalog -> Mock Objects

Mock Objects

When writing test and production code, it's useful to know when to introduce Mock Objects. This activity will help you understand what Mock Objects are, how they function at runtime, common implementation variations and usage patterns.

Flavor: simulation
15 to 30 minutes

The best way we know how to introduce people to Mock Objects is to have them experience a simulation of Mock Objects. Our simulation is designed to help people understand how system objects and Mock Objects are configured, how these objects behave at runtime and how Mock Objects increase testing efficiency, reduce duplicated test code and improve test-code readability.

ID: 16A
Flavor: demonstration
30 to 45 minutes

In this demonstration, your workshop coach will walk you through system code and test code that was produced without mock objects. Next, you'll see how the code gets refactored to use mock objects, which improves its design and makes the system easier and faster to test.

Requirements: Computer (1), Projector (1), supported IDE, xUnit

ID: 16B
Flavor: challenge
60 to 90 minutes

To fully understand mock objects, you need to get your hands dirty. In this challenge, you'll be given system code and test code that was produced without mock objects. Your goal is to refactor the code to use mock objects, thereby improving the code's design and making the system easier and faster to test. At the end of the challenge, we will discuss people's mock object implementations and what to consider when implementing mock objects.

Requirements: Computer (1 for every 2 students), Projector (1), supported IDE, xUnit

ID: 16C
Flavor: aspect oriented
15 to 25 minutes

Aspect-oriented programming provides a surprisingly good way to implement mock objects for use in software testing. In this interactive demonstration, you'll learn how aspect-oriented mock objects aid in the testing of a software system's user interface.

Requirements: Computer (1), Projector (1), supported IDE, xUnit, AspectJ

ID: 16D

Industrial Logic, Inc.

Next 5 Activities
· Unit Testing Tool
· Test-Driven HTML
· The Refactoring Challenge
· Code Smells
· Refactoring to Patterns

Catalogs
· Activity Catalog
· Experience Catalog
· Workshop Catalog

         			Send mail to webmaster@industriallogic.com with questions or comments about this web site.
Copyright © 1995-2004 Industrial Logic, Inc. All Rights Reserved.