Skip to content

Cant create MockClass of a class that extends another #296

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

Closed
RickZzDev opened this issue Nov 16, 2020 · 2 comments
Closed

Cant create MockClass of a class that extends another #296

RickZzDev opened this issue Nov 16, 2020 · 2 comments

Comments

@RickZzDev
Copy link

RickZzDev commented Nov 16, 2020

Hello, i'm trying to create a mock class that implements an abastract class, and this abstract class extends one state, that's the code.

Abstract class
abstract class WidgetTesteViewModel extends State {}

Mock
class WidgetTestSpy extends Mock implements WidgetTesteViewModel{}

Error:
'Mock.toString' ('String Function()') isn't a valid override of 'Diagnosticable.toString' ('String Function({DiagnosticLevel minLevel})')

@srawlins
Copy link
Member

Thanks for opening an issue. This has been discussed at #233. See the solution.

@srawlins
Copy link
Member

Duplicate of #233

@srawlins srawlins marked this as a duplicate of #233 Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants