You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the testing methodology adopted in the company, the template of test object is created before the tests. Then in each test, only one field of the copy recieved via toBuilder is changed. When testing GrapgQL services, we get POJO classes by generating code using mapstruct-processor and lombok-mapstruct-binding. We have encountered a problem that it is not possible to enable toBuilder in any way in this case. Please consider adding an appropriate configuration key to lombok.config that sets toBuilder = true by default for all classes in scope
lombok.builder.toBuilder = true
This will give developers more control over the result of code generation, especially on testing projects.
The text was updated successfully, but these errors were encountered:
mmefremov
changed the title
[FEATURE]
[FEATURE] Add configuration key lombok.builder.toBuilderOct 8, 2024
According to the testing methodology adopted in the company, the template of test object is created before the tests. Then in each test, only one field of the copy recieved via
toBuilder
is changed. When testing GrapgQL services, we get POJO classes by generating code usingmapstruct-processor
andlombok-mapstruct-binding
. We have encountered a problem that it is not possible to enabletoBuilder
in any way in this case. Please consider adding an appropriate configuration key tolombok.config
that setstoBuilder = true
by default for all classes in scopeThis will give developers more control over the result of code generation, especially on testing projects.
The text was updated successfully, but these errors were encountered: