mock: fake object, everything will be null-> every property, every method call will be null, unless you specify what will be returned for that property, or for that method
spy: real object, but can be partially mocked-> everything exists, real property, real method call will be performed, unless you define what will be returned for that property, or for that method.
Monday, March 5, 2018
Subscribe to:
Post Comments (Atom)
java special for collection size, array size, and string size
Size: For Collections (eg: Map, List, etc ): usually it use collection.size(), eg Map<Character, Integer> map ...
-
Daily Scrum https://www.pinterest.com/pin/775182154582807432/ https://twitter.com/Scrumartikelen 5 Ways to improve daily scrums ...
-
https://docs.oracle.com/javase/tutorial/java/javaOO/enum.html https://stackoverflow.com/questions/6667243/using-enum-values-as-string-liter...
-
https://www.cnblogs.com/shihuc/p/5201905.html http://blog.csdn.net/qq_14982047/article/details/50989761 Checked vs unchecked E...
No comments:
Post a Comment