Path: csiph.com!aioe.org!.POSTED!not-for-mail From: Xue Feng Newsgroups: comp.lang.java.programmer Subject: How to install mockito into Eclipse? Date: Sat, 30 Sep 2017 17:41:48 +0800 Organization: Aioe.org NNTP Server Lines: 16 Message-ID: NNTP-Posting-Host: qMVKtrPpGCFh5LOAc2qZGA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 X-Notice: Filtered by postfilter v. 0.8.2 Content-Language: en-US X-Mozilla-News-Host: news://nntp.aieo.org:119 Xref: csiph.com comp.lang.java.programmer:37514 Hi, I am learning how to using mockito to test. I want to use mockito within Eclipse. I have two questions about how to install the mockito library: 1. I have downloaded mockito-all-1.9.5.jar, and added it to the java build path of a project within Eclipse. The tests works well. But, when using new mockito-core-2.x.jar(it seems that mockito-all-2.x.jar does not release any more), there are some libraries to be install additionally to make mockito work. That is to say, mockito depends these libraries. But, I have no idea which libraries are needed, and the documents of mockito have no suggestions about it. 2. For every project, I have to add the jar of mockito into the java build path within Eclipse. Is there any way to set the mockito to be default library for each project created newly, just like junit? Thanks!