mtedone / podam

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

fields annotated with @NotEmpty always gives null #294

Closed ayrshid99 closed 3 years ago

ayrshid99 commented 3 years ago

I have a class that contains field annotated with @NotNull and @NotEmpty annotations the

like this

@NotNull @NotEmpty public String billing_zip; and then manufacture pojo like this

 PodamFactory factory = new PodamFactoryImpl();
Person person = (Person) factory.manufacturePojo(Person.class);

always gives null for such fields

daivanov commented 3 years ago

Hi,

As you can see from the tests the filled. I think there is some other reason for a problem you facing.

Thanks, Daniil