+
+

Related Products

  • Parasoft
    152 Ratings
    Visit Website
  • Checksum.ai
    2 Ratings
    Visit Website
  • QA Wolf
    273 Ratings
    Visit Website
  • MuukTest
    34 Ratings
    Visit Website
  • Pensero
    3 Ratings
    Visit Website
  • Virtuoso QA
    131 Ratings
    Visit Website
  • Intermedia Unite
    1,634 Ratings
    Visit Website
  • Gearset
    305 Ratings
    Visit Website
  • Innoslate
    98 Ratings
    Visit Website
  • Planview ProjectAdvantage
    121 Ratings
    Visit Website

About

Most parts of a software system do not work in isolation, but collaborate with other parts to get their job done. In a lot of cases, we do not care about using real collaborators implementation in unit testing, as we trust these collaborators. Mock objects replace collaborators of the unit under test. To test a unit in isolation or mount a sufficient environment, we have to simulate the collaborators in the test. A Mock Object is a test-oriented replacement for a collaborator. It is configured to simulate the object that it replaces in a simple way. In contrast to a stub, a Mock Object also verifies whether it is used as expected. EasyMock has been the first dynamic Mock Object generator, relieving users of hand-writing Mock Objects, or generating code for them. EasyMock provides Mock Objects by generating them on the fly using Java proxy mechanism.

About

The toolkit is provided as a set of artifacts deployed to the Maven Central repository. It requires Java 7 or newer for test execution; tests must use JUnit or TestNG. For instructions on how to add the library to a Java project, see Running tests with JMockit. In this tutorial we examine the APIs available in the library, with the help of example tests (using Java 8). The central API - a single annotation - provides support for the automatic instantiation and initialization of the objects to be tested. Then we have the mocking API (also known as the "Expectations" API), intended for tests which use mocked dependencies. Finally, there is a small faking API (aka the "Mockups" API), which can be used for the creation and application of fake implementations that avoid the full cost of external components.

Platforms Supported

Windows Not Supported
Mac Not Supported
Linux Not Supported
Cloud Supported
On-Premises Not Supported
iPhone Not Supported
iPad Not Supported
Android Not Supported
Chromebook Not Supported

Platforms Supported

Windows Supported
Mac Supported
Linux Supported
Cloud Not Supported
On-Premises Not Supported
iPhone Not Supported
iPad Not Supported
Android Not Supported
Chromebook Not Supported

Audience

Developers searching for a mock object generator solution

Audience

DevOps teams looking for an Unit Testing solution

Support

Phone Support Not Supported
24/7 Live Support Not Supported
Online Supported

Support

Phone Support Not Supported
24/7 Live Support Not Supported
Online Supported

API

Offers API Not Supported

API

Offers API Supported

Screenshots and Videos

Screenshots and Videos

Pricing

No information available.
Free Version Not Supported
Free Trial Not Supported

Pricing

Free
Free Version Supported
Free Trial Not Supported

Reviews/Ratings

Overall 0.0 / 5
ease 0.0 / 5
features 0.0 / 5
design 0.0 / 5
support 0.0 / 5

This software hasn't been reviewed yet. Be the first to provide a review:

Review this Software

Reviews/Ratings

Overall 0.0 / 5
ease 0.0 / 5
features 0.0 / 5
design 0.0 / 5
support 0.0 / 5

This software hasn't been reviewed yet. Be the first to provide a review:

Review this Software

Training

Documentation Supported
Webinars Not Supported
Live Online Not Supported
In Person Not Supported

Training

Documentation Supported
Webinars Not Supported
Live Online Not Supported
In Person Not Supported

Company Information

EasyMock
Founded: 2001
easymock.org

Company Information

JMockit
jmockit.github.io

Alternatives

Alternatives

Telerik JustMock

Telerik JustMock

Progress Telerik

Categories

Software Testing Supported
Unit Testing Supported

Categories

Unit Testing Supported

Integrations

Java Not Supported
PowerMock Supported

Integrations

Java Supported
PowerMock Not Supported
Claim EasyMock and update features and information
Claim EasyMock and update features and information
Claim JMockit and update features and information
Claim JMockit and update features and information