Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #37514

How to install mockito into Eclipse?

Path csiph.com!aioe.org!.POSTED!not-for-mail
From Xue Feng <xf.lotus@yahoo.com>
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 <oqnot0$ban$1@gioia.aioe.org> (permalink)
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

Show key headers only | View raw


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!

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

How to install mockito into Eclipse? Xue Feng <xf.lotus@yahoo.com> - 2017-09-30 17:41 +0800
  Re: How to install mockito into Eclipse? Stanimir Stamenkov <s7an10@netscape.net> - 2017-10-01 15:34 +0300

csiph-web