Commit Graph
2 Commits
Author SHA1 Message Date
hjhan ef37c8e71d refactor(swap): 合并多空名义本金参数为单一 posiTotalNotional 并加固测试
- DealInterests 的 posiLongNotionalValue + posiShortNotionalValue 合并为 posiTotalNotional(调用点以 posiLongNotional+posiShortNotional 求和传入),净减一个参数

- SwapDealService / SwapEodPositionService / InterestCalcRequest 同步收敛多空死管道参数

- 19 个测试调用点适配新签名

- SwapEodPositionServiceIntegrationTest 参数计数断言由裸数字改为参数名集合断言(CollectionAssert.AreEquivalent,对增删/重排/改名敏感)
2026-08-14 17:30:46 +08:00
hjhan 5afc7fa279 ```
test(swap): 添加收益互换端到端持仓服务集成测试

- 新增 SwapEodPositionServiceIntegrationTest 集成测试类
- 实现 DealInterests 方法的分支覆盖测试
- 添加真实数据准备和多种利息模式测试场景
- 配置新的数据库连接字符串用于测试环境
- 更新项目依赖包以支持集成测试功能
```
2026-02-13 18:12:00 +08:00