Issues

Select view

Select search mode

 

Create a unit test support library for custom validators with dependencies

Description

Some DI frameworks (e.g. Spring) are capable of injecting dependencies into constraint validator instance:

Unfortunately, it is difficult to test Person from unit test, because Hibernate calls default constructor of the validator without initializing the fields.

Environment

None

Details

Assignee

Reporter

Participants

Attila Hajdu
Yoann Rodière

Pull Request

Affects versions

Priority

Created July 26, 2022 at 8:48 PM
Updated December 3, 2024 at 2:24 PM

Activity

Show:

Attila HajduJuly 26, 2022 at 8:57 PM

Flag notifications