jmockdata
jmockdata copied to clipboard
不支持java.sql.Date类型字段实例化
...
Caused by: com.github.jsonzou.jmockdata.MockException: java.lang.InstantiationException: java.sql.Date
at com.github.jsonzou.jmockdata.mocker.BeanMocker.mock(BeanMocker.java:47)
at com.github.jsonzou.jmockdata.mocker.ClassMocker.mock(ClassMocker.java:38)
at com.github.jsonzou.jmockdata.mocker.BaseMocker.mock(BaseMocker.java:35)
at com.github.jsonzou.jmockdata.mocker.BeanMocker.setFieldValueByFieldAccessible(BeanMocker.java:67)
at com.github.jsonzou.jmockdata.mocker.BeanMocker.mock(BeanMocker.java:44)
... 37 more
Caused by: java.lang.InstantiationException: java.sql.Date
at java.lang.Class.newInstance(Class.java:427)
at com.github.jsonzou.jmockdata.mocker.BeanMocker.mock(BeanMocker.java:36)
... 41 more
Caused by: java.lang.NoSuchMethodException: java.sql.Date.<init>()
at java.lang.Class.getConstructor0(Class.java:3082)
at java.lang.Class.newInstance(Class.java:412)
... 42 more