Women in Technology

Hear us Roar



Article:
  Mock Objects in Unit Tests
Subject:   Why should I use this instead of JMock?
Date:   2005-01-13 17:20:10
From:   cer
Jmock supports mocking of interfaces and concrete classes yet this article doesn't mention it.
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Why should I use this instead of JMock?
    2005-01-13 19:50:40  lujian213 [View]

    You don't need to use Mocquer instead of JMock.

    JMock is a mock tool parallel with EasMock. They were both based on JDK's Proxy when they released their first version. With the help of CGLIB project, they have extentions to support mock class.

    JMock has a JMock-CGLIB extention. And EasyMock has a EasyMock Class Extention.

    Mocquer is based on Dunamis project instead of CGLIB. It tries to follow the usage of EasyMock.

    There is not much difference for the test case writer because the purpose of these mock tools is almost the same. So you need not to change to another mock tool if you feel comfortable with your current tool.