alibaba / alibaba/testable-mock

dao层mock 新增 修改 返回int类型接口,启动test报错,类型不匹配,改成Integer,mock不生效

Open
#330 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

int updateNotNullByPrimaryKey(T var1){};

int insert(T var1){};

mock dao层新增 ,更新接口,启动test报错
![image](https://github.com/alibaba/testable-mock/assets/29060660/06cee190-a1ca-40d2-856b-22e97e21fb9d)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.