mock调用返回值是void类型

//调用void方法

doNothing().when(templateWrapper).process();
// doCallRealMethod().when(templateWrapper).process();

原文地址:https://www.cnblogs.com/nizuimeiabc1/p/6490738.html