Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

测试service 中调用dao 中继承自mybatis中basemapper通用方法,mock dao层 不生效 #329

Open
leige1027 opened this issue Aug 7, 2023 · 0 comments

Comments

@leige1027
Copy link

@linfan 你好,如果是service 调用 dao, dao继承mybatis中 basemapper中的通用方法 list select(T t),怎么mock,我这边在service中,@MockMethod 了dao层这个通用的select方法,但是单元测试类还是走了真实的调用请求了数据库

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant