How Configure EasyMock Class Extension 3.1?

廉价感情. 提交于 2019-12-06 01:05:50

Easymock extension 3.1 depends upon easymock 3.1, the dependencies are:

  1. cglib: cglib-nodep 2.2.2
  2. org.objenesis: objenesis 1.2

from Maven Easymock.

If you're using maven, then the following dependency will work:

<dependency>
    <groupId>org.easymock</groupId>
    <artifactId>easymockclassextension</artifactId>
    <version>3.1</version>
</dependency>

From version 3.0 there is no longer any need to import classextension. Simply do search and replace of all org.easymock.classextension.* with org.easymock.* and just import the "plain" easymock dependency (see the EasyMock 3.0 doc):

<dependency>
    <groupId>org.easymock</groupId>
    <artifactId>easymock</artifactId>
    <version>3.1</version>
</dependency>

Moreover, if you use Maven, you can use the command

mvn dependency:tree

to see all dependencies (transitive as well as non-transitive).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!