I Use This!
Activity Not Available
Analyzed 6 months ago. based on code collected 6 months ago.

Project Summary

EasyStub is a simple stubbing framework for Java. It was inspired by the EasyMock framework. EasyMock is great for mocking, but a little verbose for my tastes when using it for stubbing classes. EasyStub aims to fix that!

With EasyStub, much of the syntax is like EasyMock. You create a stub by calling:


and register a stub return like:

EasyStub.stub(stubInstance.aMethodOnClass()).withValue("a value to return");

Unlike EasyMock, no replaying or verifying of stubs takes place - there is no need. The stub also behaves as if you had created a stub class using an IDE - all methods return default values (null for object return types, false for boolean types and 0 for numeric primitive types).


No tags have been added

In a Nutshell, easy-stub...

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free tool to discover if there are open source vulnerabilities in your code
  • ...
    search using multiple tags to find exactly what you need
  • ...
    there are 3xxx projects on the Open Hub with security vulnerabilities reported against them
  • ...
    compare projects before you chose one to use



30 Day Summary

Apr 9 2016 — May 9 2016

12 Month Summary

May 9 2015 — May 9 2016


Be the first to rate this project
Click to add your rating
   Spinner f6ecff617ec2ba7f559e6f535cad9b70a3f91120737535dab4d4548a6c83576c
Review this Project!