pMock: mock framework for Python
Python module for testing Python code using mock objects.
link
Python module for testing Python code using mock objects.
link
This is a very small library but powerful enough to create most of your Java Mock Objects for you. The ones it can’t create, you can leverage the library to create.
link
MockPP’s goal is to facilitate developing unit tests in C++, in the spirit of Mock Objects for Java, EasyMock and jMock.
[url=http://www.testdriven.com/search.php?query=mock&action=results]Mock objects[/url] allow you to set up predictable behaviour to help you test your production code by emulating some functionality your code depends on. This might for example be a huge database which is too difficult and time-consuming to maintain just for testing purposes.
link
EasyMock.NET is a class library that provides an easy way to use mock objects for given interfaces or remote objects. EasyMock.NET is a port of the EasyMock framework, which can be found for the Java(TM) platform.
link
EasyMock is a class library that provides an easy way to use Mock Objects for given Java interfaces. Among other features, EasyMock allows for generation of mock objects for classes.
link
MockMaker is a program for automatically creating source code for mock object. MockObjects can be used in automated Unit testing.
link
Jenny creates strong-typed mocks for all generated JDBC table classes to facilitate unit testing.
link
PicoContainer is a lightweight container which improves testability and is very easy to use. CodeHaus has simple and straightforward pages describing what PicoContainer is and how to use it.
link
The .NET Mock Objects project is a .NET framework whose goal is to facilitate developing unit tests in the mock object style.
See also the .NET MockObjects wiki at http://dotnetmock.sourceforge.net/tikiwiki/tiki-index.php
link
VirtualMock is a Java unit testing tool which supports the Mock Objects testing approach. Through the use of Aspect-Oriented Programming, it is designed to address some of the limitations of existing Mock Object tools and approaches.
link
Mockry is a tool to create mockobjects, used to help developers automate their unit tests. This project has been initiated by the Montreal’s XP users group.
link
Mockrunner is a lightweight framework for unit testing applications in the J2EE environment. It supports Struts actions and forms, servlets, filters and tag classes. Furthermore it includes a JDBC test framework. The JDBC test framework can be used standalone or in conjunction with MockEJB to test EJB based applications.
link
Test::MockObject is a Perl extension allowing users to mock interfaces.
link
Martin Fowler writes:
"A common problem with test-enhanced designs is how to create Service Stubs in test mode while letting the real thing be there for production (and for some tests). A couple of my colleagues have shared their ideas.
Jeremy Stell-Smith showed me an approach based on an Abstract Factory. All stubbable services are pulled from a single factory. This example shows such a Persistance class."
link
Mock objects help you design and test the interactions between the objects in your programs.
The jMock package:
* makes it quick and easy to define mock objects, so you don’t break the rhythm of programming.
* lets you define flexible constraints over object interactions, reducing the brittleness of your tests.
* is easy to extend for application specific scenarios.
link
NMock is a dynamic mock-object library for .NET
The Mock Objects project is a generic unit testing framework whose goal is to facilitate developing unit tests in the mock object style. The goal of this project is to provide a core mock objects framework, a methodology for developing and using mock objects, a default set of mock implementation for the standard Java platform APIs, mock implementations for more specialised libraries.
link
StrutsTestCase for JUnit is an extension of the standard JUnit TestCase class that provides facilities for testing code based on the Struts framework. StrutsTestCase provides both a Mock Object approach and a Cactus approach to actually run the Struts ActionServlet, allowing you to test your Struts code with or without a running servlet engine. Because StrutsTestCase uses the ActionServlet controller to test your code, you can test not only the implementation of your Action objects, but also your mappings, form beans, and forwards declarations. And because StrutsTestCase already provides validation methods, it’s quick and easy to write unit test cases.
Author: Deryl Seale
link
Mock objects are a powerful and flexible mechanism for substituting an imposter as a parameter to the class under test. In many cases, however, the collaborations with the class under test are not parameterized — for example: an attribute that is not supplied to the constructor; objects that are created or referenced via static factories; or new instances of collaborations that are created by the class.
Object Substitution is a technique developed by Polygenix to enable the developer to replace such collaborations with the class under test without modifying the original source code.