【问题标题】:SprigngTestDBUnit. How to ignore row order when comparing expected and actual datasets弹簧测试数据库单元。比较预期数据集和实际数据集时如何忽略行顺序
【发布时间】:2014-03-07 07:10:48
【问题描述】:

我正在使用 com.github.springtestdbunit 在我的 DAO 层上进行持久性测试。问题是我不知道数据将以何种顺序保存到数据库中,因此在比较预期数据集和实际数据集时我需要忽略行顺序。 基本上这是同一个问题DB Unit should ignore order of rows,但我想知道如何在不破坏库的 @ExpectedDatabase 注释及其枚举参数 DatabaseAssertionMode 的情况下修复它。

【问题讨论】:

    标签: spring junit4 spring-test-dbunit


    【解决方案1】:

    我想它很快就会被无序断言模式修复https://github.com/springtestdbunit/spring-test-dbunit/pull/48

    【讨论】:

      猜你喜欢
      • 2015-07-19
      • 2012-10-19
      • 2019-09-06
      • 1970-01-01
      • 1970-01-01
      • 2019-12-12
      • 2021-11-21
      • 2015-12-25
      • 2020-03-15
      相关资源
      最近更新 更多