Select a tag to browse associated projects and drill deeper into the tag cloud.
PowerMock allows you to unit test code normally regarded as untestable. For instance it is possible to mock static methods, remove static initializers, allow mocking without dependency injection and more.
Spock is a testing and specification framework for Java and Groovy developers. What makes it stand out from the crowd is its beautiful and highly expressive specification language. Thanks to its JUnit runner, Spock is compatible with most IDEs, build tools, and continuous integration servers. Spock ... [More]
JMockit allows developers to write unit and integration tests without the testability issues typically found with other mocking APIs. Tests can easily be written that will mock final classes, static methods, constructors, and so on. There are no limitations. Most importantly, with JMockit all ... [More]
NSubstitute is a friendly substitute for .NET mocking frameworks. It's like a stub with property behaviour. With nice semantics for setting return values. It only has one mode - loose semantics, which you can query afterwards. It's meant to be simple, succinct and pleasant to use.
MockInject is a library that supports accurate injection of your mockobjects (manual written or generated). Supported injection points are constructor- or method-calls. The injection-points can be defined by using a simple edsl. It uses ByteCodeInstrumentation to inject your mocks, but you ... [More]
Moxie is a library for creating mock objects in Java. It aims to have the "nicest" syntax of any Java mocking library: Concise - set up any expectation in one Java statement. Short method names, no anonymous inner classes, no need to "replay" mock objects. Refactorable - ... [More]
Please read this article for details: http://nermins.net/post/2007/07/Mock-ADONET-with-ease-using-IDataReader-Stub-objects.aspx This tool uses following libraries: 1) Enterprise Library 3.1 2) NUnit 2.4.3 3) TypeMock.Net Assemblies from 1) and 2) are already included in SVN ... [More]
Adding in all the features I wished NMock had build in. Mocking EventsStub.On(mock_with_events).EventAdd("eventname", Is.Anything).Will(Remember.EventAdd); Stub.On(mock_with_events).EventRemove("eventname", Is.Anything).Will(Remember.EventRemove); // perform action that makes ... [More]