Comments (4)
Yup, I've checked Mockito too (due to the PR #49 ) but it seems mockito 1.x is obsolete already, while 2.0 is still in beta. I personally don't recommend changing to any of these at the moment (lets wait a few months with this change).
from better-java.
@erosb what about 1.x is obsolete?
from better-java.
I meant that if 2.x is in beta then probably they will roll out a stable release soon, and in that moment 1.x will be the "old" mockito. I do not recommend to include in the better-java README a version which soon will be old. I would also discourage recommending the 2.x library since it is - at the moment - in beta.
Of course I do not think that anyone using mockito 1.x has to stop using it and move to 2.x, so my above comment was not meant to be offensive, feel free to keep using 1.x if that is what you are familiar with. But it makes a difference what to recommend to people unfamiliar with mocking at all, and what should be used by experienced testers.
To sum up I recommend staying with the jMock example (since it turned out to be quite popular in #49 ) and lets reconsider Mockito when 2.x is out.
from better-java.
As I mentioned in #49, I think better-java should describe mocking as a
best practice but wouldn't be opposed to having examples using more than
one framework. For those of us using CDI, the CDI-Unit library also
includes the ability to Mock objects annotated with @Inject.
On Mon, Dec 7, 2015 at 12:57 PM, Bence Eros [email protected]
wrote:
I meant that if 2.x is in beta then probably they will roll out a stable
release soon, and in that moment 1.x will be the "old" mockito. I do not
recommend to include in the better-java README a version which soon will be
old. I would also discourage recommending the 2.x library since it is - at
the moment - in beta.Of course I do not think that anyone using mockito 1.x has to stop using
it and move to 2.x, so my above comment was not meant to be offensive, feel
free to keep using 1.x if that is what you are familiar with. But it makes
a difference what to recommend to people unfamiliar with mocking at all,
and what should be used by experienced testers.To sum up I recommend staying with the jMock example (since it turned out
to be quite popular in #49 #49
) and lets reconsider Mockito when 2.x is out.—
Reply to this email directly or view it on GitHub
#50 (comment).
Sent from my iBerry MacPhone
from better-java.
Related Issues (20)
- Information about generics
- Warning for Enter Blog in chrome Version 45.0.2454.93 m HOT 1
- Builder method and inheritance HOT 3
- Collections and Generics section
- Review "Avoid lots of Util classes" HOT 1
- Add information about CompleteableFuture
- mention that javaposse stopped HOT 2
- There is a GPL licensed alternative to JRebel called DCEVM
- More things to Consider
- Quality tool - error-prone
- Optional should only be used as a Return Type HOT 4
- Code quality - suggestion
- #1 HOT 6
- How to define a mutable object? HOT 3
- Add link to Java 8 Tutorial
- Consider another great tool IceFig
- Eclipse EMF
- A resource to make better java even better...
- Mention AutoValue and Lombok in struct and builder sections HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from better-java.