IDEA unit testing questions about doReturn (). When () is

When running the test given unit, as shown below:

Amended as follows: where () can not always add a little behind in successive calls when, respectively, was open to mock, step by step, to write, so you can run through the:

I hope the above answer helpful to everyone!

Guess you like

Origin www.cnblogs.com/nanmu0/p/12516395.html