Support @Spy AbstractClass/Interface

Had to fix a few existing tests because ```spy(Class)``` doesn't like private ocnstructors.

I think the most common case would be for a test to ```@Spy PrivateNestedClass```. By default, private class's default constructor is private so these tests were implicitly calling the private constructor.

Another option would be to check and skip calling constructor for private constructors. Although, that would be behavior-changing too.
my pref is to add the feature in backwards compat way before 2.0 ;)
28 lis 2014 15:52 "Ben Yu" <notifications@github.com> napisał(a):

> In test/org/mockito/internal/handler/InvocationNotifierHandlerTest.java:
>
> > @@ -131,7 +131,8 @@ public void should_delegate_all_MockHandlerInterface_to_the_parameterized_MockHa
> >          verify(mockHandler).setAnswersForStubbing(anyList());
> >      }
> >
> > -    private static class CustomListener implements InvocationListener {
> > +    private static class CustomListener implements InvocationListener {
> > +    	CustomListener() {}
>
> I assume this still means that you'd prefer it to be added in v2.0, not
> earlier, right?
>
> Just want to make sure I'm not dropping the ball here.
>
> (Btw, when is v2.0 expected to release?)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mockito/mockito/pull/126/files#r21034687>.
>