I want to mock Constructor of a class and still call real methods of that class using Mockito
I am trying to unit test a class A, where I call a method in its Constructor getB(). I want to Unit test this class A without calling this method inside the constructor in order to test other methods inside the class.
How to get mock object when initialition with new key word(using Mokito)
I am writing test case in testNg and mockito. I got stuck at this line in a method –