Browsing projects by Tag(s)

Select a tag to browse associated projects and drill deeper into the tag cloud.

Showing page 1 of 2

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.

4.75
   
  0 reviews  |  13 users  |  42,220 lines of code  |  1 current contributor  |  Analyzed 6 days ago
 
 

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] is inspired from JUnit, jMock, RSpec, Groovy, Scala, Vulcans, and other fascinating life forms. [Less]

4.5
   
  0 reviews  |  12 users  |  77,702 lines of code  |  7 current contributors  |  Analyzed 2 days ago
 
 

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] programming practices, patterns, and styles are supported equally, without forcing developers to make compromises just for the sake of unit testing. [Less]

4.5
   
  0 reviews  |  7 users  |  63,574 lines of code  |  1 current contributor  |  Analyzed 4 days ago
 
 

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.

5.0
 
  0 reviews  |  7 users  |  78,235 lines of code  |  10 current contributors  |  Analyzed 5 days ago
 
 

Provides method stubbing for concrete Java classes, intended for use with JUnit 4.

5.0
 
  0 reviews  |  1 user  |  5,641 lines of code  |  0 current contributors  |  Analyzed about 2 years ago
 
 

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] needen't to have any Knowledge about BCI or JavaBytecode, just use the edsl. [Less]

0
 
  0 reviews  |  1 user  |  5,405 lines of code  |  0 current contributors  |  Analyzed 4 days ago
 
 

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] method name/signature changes using refactoring tools will be reflected in your tests. Easy - integrates with JUnit 4 to automatically create and verify mocks on your test objects. (You can still do this manually.) Moxie was written after years of annoyance^H^H^H^H^H^H^H^H^Hexperience with JMock, EasyMock and Mockito, and aims to take lessons form each. [Less]

0
 
  0 reviews  |  0 users  |  15,585 lines of code  |  1 current contributor  |  Analyzed 2 days ago
 
 

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' ... [More] JavaScript mocking library in the style of jMock, or EasyMock, which can be used in isolation, or more usefully in conjunction with a test-harness such as QUnit, or YUI Test as part of the TDD cycle. It facilitates behaviour-based, or 'glass-box' testing of JavaScript programs, by allowing developers to mock collaborator objects, and verify their behaviour. It was written by Mark Meyer and Andy Beeching, a couple of JS hackers in London, and we thought we'd share the results with the community. You may want to: Find out more about the project. Read the API docs. Get up to speed on TDD Learn more about mocking. (TODO) See examples of mocks in action. (TODO) [Less]

0
 
  0 reviews  |  0 users  |  3,544 lines of code  |  0 current contributors  |  Analyzed 5 days ago
 
 

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] repository. You will need to download and install a free version of TypeMock.Net to run Unit tests in this solution. [Less]

0
 
  0 reviews  |  0 users  |  33,209 lines of code  |  0 current contributors  |  Analyzed 5 days ago
 
 

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] someone listen to the event. ... //simulate firing event Event.Fire("eventname", mock_with_events, new EventArgs()); Mocking Generic MethodsStub.On(childScope) .Method(new GenericMethodMatcher("MethodName", typeof(Type1), typeof(Type2)) .Will(Return.Value(NewMock())); Stub.On(childScope) .Method(new GenericMethodMatcher("MethodName", typeof(Type1), typeof(Type3)) .Will(Return.Value(NewMock()));.Net 3.5 people can now do this... Stub.On(childScope) .Method("MethodName") .Will(Return.Value(NewMock()));Simple! DRY FixturesDerive your test fixtures from MockingTestFixture. You don't need:- mocks = new Mockery(); //or mocks.VerifyAllExpectationsHaveBeenMet();And... // Before: mockCurrencyService = mocks.NewMock(); //After: mockCurrencyService = NewMock();Note: protected override void SetUp() { ... }replaces... [SetUp] public void SetUp() { ... } [Less]

0
 
  0 reviews  |  0 users  |  577 lines of code  |  0 current contributors  |  Analyzed 9 days ago
 
 
 
 

Creative Commons License 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.