Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #37514
| From | Xue Feng <xf.lotus@yahoo.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | How to install mockito into Eclipse? |
| Date | 2017-09-30 17:41 +0800 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <oqnot0$ban$1@gioia.aioe.org> (permalink) |
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
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