【发布时间】:2017-05-05 05:55:39
【问题描述】:
我正在尝试对已部署的 Web 服务执行 junit 测试。但是在将现有的 soap 请求作为参数传递给我已部署的方法时,我收到以下错误。
com.thoughtworks.xstream.converters.ConversionException: Cannot parse date 2016-12-09
我正在使用以下请求。
<com.sampleclass>
<remark>TEST</remark>
<toDate>2016-12-09</toDate>
</com.sampleclass>
而我的变量在对应的数据类中是。
private Date toDate;
【问题讨论】:
标签: java soap junit date-parsing