alibaba / alibaba/testable-mock

@PostConstruct注解的方法Mock不生效

Open
#338 0 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

类中使用@PostConstruct注解声明的方法,其对应的Mock方法不生效,请问是正常情况吗

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Start by reproducing the reported case with a class whose @PostConstruct method has a mock, then trace the project’s mock handling around that lifecycle callback. Done means determining whether the behavior is expected and documenting or correcting it with a regression test.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.