You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a factory interface, extended by factory subtypes. The factories have default methods. So I would expect that they are called instead of whatever implementation is used.
Here's my full test case. Yes, I'm using a small hierarchy because that's actually part of my actual needs. It's probably not needed to showcase the error, though.
The assertion fails because the call returns the empty string "". It must be a default or something like that, I'm not entirely sure, but I would have expected that my default method is called.
The text was updated successfully, but these errors were encountered:
ogregoire
changed the title
AssistedInject and default methods
AssistedInject factories should call their default methods without stubbing
Jun 8, 2020
I have a factory interface, extended by factory subtypes. The factories have default methods. So I would expect that they are called instead of whatever implementation is used.
Here's my full test case. Yes, I'm using a small hierarchy because that's actually part of my actual needs. It's probably not needed to showcase the error, though.
The assertion fails because the call returns the empty string
""
. It must be a default or something like that, I'm not entirely sure, but I would have expected that my default method is called.The text was updated successfully, but these errors were encountered: