//调用void方法

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-01-08
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-19
  • 2021-09-01
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
相关资源
相似解决方案