我正在使用 mockito 和 camelTestSupport 编写骆驼路线测试,但测试失败并出现以下错误:
Caused by: org.apache.camel.component.bean.MethodNotFoundException: 静态方法名称: methodA not found on class: .service.impl.ServiceImpl 在 org.apache.camel.component.bean.DefaultBeanProcessorFactory.createBeanProcessor
The method is present in service impl, and is defined as below:
public Object methodA(@Headers Map headers, @Body String payload) {
return new ResponseEntity<>(HttpStatus.BAD_REQUEST);
}