Closed rgampa closed 5 years ago
Found workaround to mock final class here: https://www.baeldung.com/mockito-final. However it will be nice if final is removed from classes where consumer have to mock for unit testing.
Done in V3
Actually, I don't think you want to remove final for testing purpose only. See: https://ocramius.github.io/blog/when-to-declare-classes-final/
Getting below error when mocking ResourceResponse, using sdk
version 2.4.5
. I saw FeedResponse doesn't have final keyword, can you make it same for ResourceResponse?