1

当 Spring Webflow 2.0 测试(从 AbstractXmlFlowExecutionTests 继承)验证失败时,如何访问 spring 创建的错误对象?

我尝试使用 FormObjectAccessor.getCurrentFormErrors() 但我无法获得对 RequestContext 的引用。

4

1 回答 1

2

What is the reason you want to access the errors? Wouldn't it be simpler to write unit tests for your validation methods?

于 2010-10-19T20:33:05.530 回答