alibaba / alibaba/testable-mock
dao层mock 新增 修改 返回int类型接口,启动test报错,类型不匹配,改成Integer,mock不生效
Open
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 306
- PR merge metrics
- No merged PRs in 30d
Description
int updateNotNullByPrimaryKey(T var1){};
int insert(T var1){};
mock dao层新增 ,更新接口,启动test报错

Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the test-startup failure with the DAO methods shown in the issue, then trace how the mock framework handles their int return type versus Integer. Done means DAO insert and update mocks take effect without a type-mismatch error during test startup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100