When I used chained mocks, there was a problem. For example, I needed to return different values according to the different parameters of the intermediate chained methods. When I used it, a null pointer exception occurred.
1、chain
2、args seq
When I used chained mocks, there was a problem. For example, I needed to return different values according to the different parameters of the intermediate chained methods. When I used it, a null pointer exception occurred.
1、chain
2、args seq