Java 类org.springframework.beans.MethodInvocationException 实例源码

项目:sinavi-jfw    文件:JseBindingErrorProcessorTest.java   
@Test
public void PropertyEditingExceptionの場合にフィールドエラーが設定される() {
    class T {
    }
    MethodInvocationException mie = new MethodInvocationException(new PropertyChangeEvent(new T(), "aaaa", null, null),
        new PropertyEditingException("message"));
    BeanPropertyBindingResult result = new BeanPropertyBindingResult(new T(), "Test");
    processor.processPropertyAccessException(mie, result);
    assertThat(result.getFieldError(), notNullValue());
}