Comments (9)
Looks really good.
How would @Spy annotation work? Is it going to create an object based on a
default
constructor? To make it consistent spy() method should also allow for:
Foo spy = Mockito.spy(Foo.class);
Original comment by [email protected]
on 25 Jun 2008 at 2:36
from mockito.
Ok then, @Spy annotation is out of the game. Let's not complicate and leave out
the
default constructors.
Original comment by [email protected]
on 25 Jun 2008 at 3:04
from mockito.
Original comment by [email protected]
on 25 Jun 2008 at 6:41
from mockito.
Original comment by [email protected]
on 25 Jun 2008 at 6:41
- Changed state: New
from mockito.
I was thinking about possible scenarios for partial mocking and my conclusion
is that
the usage of a proposal would be limited. Why? Because it won't allow you to
stub
private methods and in most of my cases this is what I would like to do.
Original comment by [email protected]
on 26 Jun 2008 at 6:44
from mockito.
mocking private methods? You're a bad boy. When the test starts to be curious
about a
private method then clearly this method should not be private any more :)
Original comment by [email protected]
on 12 Jul 2008 at 8:24
from mockito.
Implemented in 1.5
Original comment by [email protected]
on 26 Jul 2008 at 8:39
from mockito.
Original comment by [email protected]
on 26 Jul 2008 at 8:39
- Changed state: Fixed
from mockito.
Original comment by [email protected]
on 19 Apr 2009 at 7:40
- Added labels: Milestone-Pre1.7
from mockito.
Related Issues (20)
- NPE on verification when multiple threads used HOT 4
- allow stubbing with callbacks HOT 4
- Want to extend Mockito class to include my own matchers HOT 3
- Arguments are saved by a reference HOT 4
- PATCH : Performance Enhancement for MockHandler : Search matchers once instead of twice HOT 7
- ArrayEquals throws exception HOT 4
- @Mock annotation does not work very well with Eclipse and IDEA HOT 3
- when arguments are different the exception now allows using the comparison window HOT 2
- add junit runners that automaticaly initialize mocks annotated with @Mock HOT 2
- interaction gets remembered between tests HOT 13
- Can't stub spied object HOT 5
- Javadocs don't tell all the truth about Mockito spies HOT 3
- InOrder.verify() displays the actual invocation on error when arguments are different HOT 19
- verify throws an IllegalArgumentException for overloaded method where array argument is incorrect HOT 4
- make spy working with Anonymous classes HOT 36
- Checking the method calls ordering in multi-thread environment. HOT 7
- Varargs stubbing produces incorrect behavior HOT 3
- Verify without method call causes errors in other tests. HOT 8
- Upload mockito to the Central Repository
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 mockito.