2008-05-12

spring测试发现的问题

关键字: spring
不知道大家在用spring做单元测试时,有没有遇上如下异常信息org.springframework.transaction.UnexpectedRollbackException: Transaction has been rolled back because it has been marked as roll 其实我定单元测试时和往常一样,只是创建的数据顺序和删除的顺序不一致导致的,后来调整,问题就解决了 代码示例:          // create operation   ...
lean1252
搜索本博客
存档
最新评论