testable-mock/docs/zh-cn/doc/verify-sql.md
2021-05-05 23:23:11 +08:00

7 lines
381 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

测试数据访问层逻辑
---
由于数据库的访问本质上属于外部调用因此在单元测试中往往被作为Mock的目标导致DAO层逻辑很容易成为单元测试盲区。为此`TestableMock`通过针对数据库访问包内部逻辑的精准Mock提供按需拦截和验证SQL语句的功能。
计划在`0.7`版本中推出面向`Mybatis`的支持。