Closed GoogleCodeExporter closed 8 years ago
I like the ideas, feel free to contribute ;)
Original comment by szcze...@gmail.com
on 26 Jan 2010 at 8:13
I will look into it!
Original comment by brice.du...@gmail.com
on 27 Jan 2010 at 4:25
Here is the first part of my proposal. With unit tests in AnnotationsTest.
For no I extended the @Mock annotation from MockSettings api, and I added the
@Spy
annotation. However it is a rather trivial attempt, the code needs improvement.
And by the way I just saw a few hours ago that James Carr raced me on this one.
Original comment by brice.du...@gmail.com
on 28 Jan 2010 at 5:46
Attachments:
Cool, I'll have a look!
Original comment by szcze...@gmail.com
on 1 Feb 2010 at 8:03
By the way another appraoch would be to use other annotations like
@ExtraInterfaces,
@Name, @Answer, however it complicates the MockitoAnnotation /
DefaultAnnotationEngine classes.
Original comment by brice.du...@gmail.com
on 1 Feb 2010 at 11:38
Here's a more complete patch with a basic mock / spies only injection in fields
annotated with @InjectMock. New test class included. Runners updated.
My code probably still needs a bit of improvement.
I also added @Captor annotation as proposed in issue 166.
The patch can be applied on r1827.
Original comment by brice.du...@gmail.com
on 2 Feb 2010 at 12:06
Attachments:
Hi,
Will have a look but I'm quite busy at the moment. Hopefully, Bartosz/Igor/Wes
will
pick it up. I was more thinking about @Tested instead of @InjectMock but it's
just
the matter of the name.
Original comment by szcze...@gmail.com
on 2 Feb 2010 at 12:32
Original comment by szcze...@gmail.com
on 14 Feb 2010 at 12:32
Original comment by szcze...@gmail.com
on 14 Feb 2010 at 10:11
Guys,
Sorry it took me some time to get into it. I am ready to spend some time
merging the
patch but it would be very useful if there were separate patches per feature. I
can
see 3 features here: @Captor, @Spy, @InjectMock
Can someone split the big patch into smaller batches?
Original comment by szcze...@gmail.com
on 17 Feb 2010 at 2:43
Well I have no problem with that, every one has a real life ;)
Anyway on this matter I will propably spend some time maybe tomorrow on it with
the
latest repository version.
Original comment by brice.du...@gmail.com
on 17 Feb 2010 at 3:29
A side note: I've posted a patch for @Spy experiment at issue 104 page.
Original comment by alen_vre...@yahoo.com
on 18 Feb 2010 at 2:02
Hello, I splitted my last patch and adapted it to r1856. The patch files are
*cumulative*. You should apply them in order.
1. Extended @Mock support
2. @Spy support
3. @InjectMockSupport
Original comment by brice.du...@gmail.com
on 19 Feb 2010 at 5:08
Attachments:
excellent. I will try to get it checked in today.
Original comment by szcze...@gmail.com
on 20 Feb 2010 at 1:34
This issue was closed by revision r1858.
Original comment by szcze...@gmail.com
on 20 Feb 2010 at 7:51
Original comment by szcze...@gmail.com
on 28 Feb 2010 at 9:08
Original comment by brice.du...@gmail.com
on 3 Sep 2012 at 10:00
Original comment by brice.du...@gmail.com
on 3 Sep 2012 at 10:11
Original issue reported on code.google.com by
brice.du...@gmail.com
on 26 Jan 2010 at 3:14