138 reputation
6
bio website
location Connecticut
age 43
visits member for 3 years, 6 months
seen Aug 27 at 19:09

A programmer for 20+ years. In Financial Industry for the last 10 years, before that all over the place.


Sep
24
awarded  Autobiographer
Aug
14
comment Is this an appropriate use of Mockito's reset method?
I wish Mockito provided resetInteractions() call to just forget the past interactions for the purpose of verify(..., times(...)) and keep the stubbing. This would make the test situations of {setup; act; verify;} that much easier to deal with. It would be {setup; resetInteractions; act; verify}
May
8
awarded  Supporter
Oct
22
awarded  Popular Question
Apr
7
asked Is this a pattern? Should it be?
Mar
25
awarded  Scholar
Mar
25
accepted Once and only once - with more lines of code
Mar
25
comment Once and only once - with more lines of code
I iterate over two parallel data structures that have same shape but dissimilar implementation. I copy the low level data one to the other. The target structure is larger than the source, so the correct subset of target nodes needs to be identified to match the source nodes. The structures have four kinds of layers, combined two or three deep, according to application usage. I can mix and match my per-layer loops as I need.
Mar
25
awarded  Student
Mar
25
asked Once and only once - with more lines of code
Mar
25
awarded  Teacher