alibaba / alibaba/testable-mock
子类如何Mock父类中的protected属性
Open
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 306
- PR merge metrics
- No merged PRs in 30d
Description
版本:0.7.5
请问如何测试类中Mock父类的protected类型的变量呢,该属性为配置变量
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue only identifies version 0.7.5 and asks how a subclass can mock a protected configuration variable inherited from its parent. Start by reproducing the question on that version and review the project’s testing guidance or examples; done means documenting a supported way to test this case, or clearly stating that it is unsupported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100