mtedone / podam

PODAM - POjo DAta Mocker
https://mtedone.github.io/podam
MIT License
326 stars 749 forks source link

Adding Type Manufacturer does not override @Pattern default #295

Closed daz96050 closed 2 years ago

daz96050 commented 2 years ago

When adding a new Type Manufacturer using the podam docs at "Defining an attribute-level strategy with DataProviderStrategy", all fields on classes being manufactured that have a @Pattern annotation are ignored by the manufacturer, automatically returning null

daivanov commented 2 years ago

Hi,

We do not support filling @Pattern annotated attributes due to missing reverse regular expression string construction implementation. How do you exactly define DataProviderStrategy?

Thanks, Daniil

daivanov commented 2 years ago

Closing the issue due to lack of the response