Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following test fails:
public interface Base<T> { T doSomething(); } static class Impl implements Base<Integer> { public Integer doSomething() { return 1; } } @Test public void captureImplementationsOfGenericType(@Capturing final Base<?> anyInstance) { new Expectations() {{ anyInstance.doSomething(); result = 2; }}; int result = new Impl().doSomething(); assertEquals(2, result); }
The implementation class gets mocked (as doSomething() returns zero), but the invocation fails to match the recorded expectation.
The text was updated successfully, but these errors were encountered:
Do u have any idea if I may help to fix this issue as it helps me too?
Sorry, something went wrong.
Added test for issue #252.
5d1a901
jmockit/jmockit1@8b65810
rliesenfeld
No branches or pull requests
The following test fails:
The implementation class gets mocked (as doSomething() returns zero), but the invocation fails to match the recorded expectation.
The text was updated successfully, but these errors were encountered: