mapstruct-idea icon indicating copy to clipboard operation
mapstruct-idea copied to clipboard

"Wrong usage of mappers factory" should not be warning in Tests scope

Open GTOL opened this issue 7 months ago • 2 comments

I think it should not show warning in unit test code with no component scan.

@InjectMocks
private JobService jobService;
@Spy
JobEntityMapper jobEntityMapper = Mappers.getMapper(JobEntityMapper.class);

GTOL avatar Jul 17 '25 07:07 GTOL