-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
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
Two tests with same code with different result (old version and new version of mockito)? #401
Comments
Thanks for the bug report. We're going to need more information. Do you get any stack trace? I don't see any API with |
I think the stack trace is Debug Console in VSCode:
This code occurs when i mock this abstract class:
I use the add method inside abstract class BoxBase:
|
Yes, it looks like the MockBox class does not have an |
@srawlins I apologise in advance if I'm just dumb, but I still cant seem to generate the I recently updated flutter and dart. And I ran
I'm still receiving the same error.
For this test:
Did I miss some sort of setup? |
No I don't think you're missing anything. The bug still exists in mockito 5.0.8. It should be fixed at HEAD now that #404 has landed. I plan to release a new version tomorrow or Monday. |
Ah okay then. Thanks for clarifying. |
Good afternoon,
I trying to mock Hive dependency, but no succeed. I tested the older version of mockito and it granted success, but when i use the mockito with null safety occur an error. I mocked the HiveInterface and Box in all tests.
Here is the old mockito version:
Here is the new version:
The *.mocks.dart code:
Here is the error:
![image](https://user-images.githubusercontent.com/5700458/116792042-c3b17200-aa94-11eb-9512-43349e2de205.png)
The text was updated successfully, but these errors were encountered: