243 reputation
25
bio website
location
age
visits member for 3 years, 10 months
seen Apr 29 at 10:55

Jan
24
answered How should I test the functionality of a function that uses other functions in it?
Jan
24
answered Is it a good idea to collect anonymous usage statistics in a free program?
Mar
1
awarded  Yearling
Feb
27
comment Is this an appropriate use of Mockito's reset method?
If you need to reset your mock objects, it seems like you are trying to test too much stuff in your test. You can split it in two tests, testing smaller stuff. In any case, I don't know why you are verifying inside the getBar method, it's difficult to track what you are testing. I recommend you to design your test thinking in what your class should do (if you must call someMethod exactly two times, at least one time, only one time, never, etc.), and do every verification in the same place.
Feb
27
awarded  Editor
Feb
27
revised Is this an appropriate use of Mockito's reset method?
added 275 characters in body
Feb
27
answered Is this an appropriate use of Mockito's reset method?
Feb
27
answered How to invoke anonymous functions in testing?
Feb
26
awarded  Constituent
Feb
26
awarded  Caucus
Oct
7
awarded  Scholar
Oct
7
awarded  Supporter
Sep
29
awarded  Teacher
Sep
29
answered Does Agile force developers to spend more time actually working?
Sep
29
answered Getting humiliated by your senior programmer
Sep
29
answered How to reduce the number of bugs when coding?
Sep
29
answered When deciding on whether or not to work for a new company, what are your dealbreakers?