Mockito

ways to mock

injectMock
spy
doNothing,doAnswer

Mockito cannot instantiate inner classes, local classes, abstract classes and of course interfaces. Beware of private nest static classes too

The same stands for setters or fields, they can be declared with private visibility, Mockito will see them through reflection. However, fields that are static or final will be ignored.

https://static.javadoc.io/org.mockito/mockito-core/2.23.0/org/mockito/InjectMocks.html

It has been two months in Telstra, with this lovely team, and its my honor to be a member and observe the massive achievements of TPN and AWS projects.
I see how we demonstrate our value by behavior,  our customer success is our success, and strive for excellence. 
today is the last day in Telstra, I wish you all the best for your future endeavors. I am looking forward to have more opportunities to work together and achieve anotehr success.

Comments

Popular posts from this blog

Git - comflict solving

Getting started with OpenShift