We have quite a few occasions when Injector.get(SomeClass.class) is used inside command. Given that mockito can't mock static methods and power mock is not used, I wonder what one should do when these usages have to be mocked in unit tests. Funny enough, workarounds for this usage in my specific case include mocking constructor (unsupported by mockito) and mocking superclass method (unsupported by mockito). Also, why not to @Inject these instances in the first place?
Thanks, Fedor _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/PRNKT5WBP7P3ABH54APXZKCQHS6REP7M/