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
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
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
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 -
qMock is a standalone, lightweight mocking framework that facilitates integration testing for JavaScript programs. var ninja = new Mock();Please note it is useful, but not essential, to have some experience of testing code in a TDD manner to use qMock qMock is a 'expect-run-verify'
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
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
Copyright
©
2013
Black Duck Software, Inc.
and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a
Creative Commons Attribution 3.0 Unported License
. Ohloh
®
and the Ohloh logo are trademarks of
Black Duck Software, Inc.
in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.