alibaba / alibaba/testable-mock

关于@MockInvoke使用的隐含规则描述

Open
#263 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.8k
Forks
306
PR merge metrics
No merged PRs in 30d

Description

## 使用 @MockInvoke注意事项
# 一、在测试类中配置(建议)
1.在测试类中创建一个内部类,类名必须是Mock
在内部类中编写@MockInvoke相关代码
2.测试类必须与被测试的类在同一个包下
3.测试类的类名必须是被测试类类名+Test
# 二、在Mock类中配置
1.创建一个Mock类,类名为被测试类类名+Mock
2.Mock类必须与被测试的类在同一个包下
请问以上描述是否正确?

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the documented @MockInvoke usage rules for test classes, internal Mock classes, package placement, and naming conventions, then compare them with the project’s behavior. Done means the documentation clearly confirms or corrects each listed rule, with any necessary examples or caveats.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
documentation, testing
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.