alibaba / alibaba/testable-mock
MOCK父类中外调方法不生效
Open
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 306
- PR merge metrics
- No merged PRs in 30d
Description
A类为父类,B类为子类,在B类的测试类中MOCK父类的外调方法,结果不生效
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the case described: class A is the parent, class B extends it, and the B test mocks an external-call method from A. Trace the mock handling for inherited methods and verify that the mock takes effect when the method is invoked through B; document a regression test for this scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100