alibaba / alibaba/testable-mock

希望连接多个Mock

Open
#199 4 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

请问在我的Test类里头,不同的Test类希望引入多不同的Mock,使用`@MockWith` 只支持引入一个,请问有什么方式,或者可否扩展一个类似`@MocksWith`的注解支持不同Test按需引入不同的Mock

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the existing @MockWith annotation and how it is applied in Test classes. Trace how a test selects its mock, then define how multiple mocks would be selected per test class and what behavior should confirm the change is complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.