mtedone / podam

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

Attribute with @Size(max = number) is not being considered #243

Closed hfcipriano closed 7 years ago

hfcipriano commented 7 years ago

Sorry for my probally ignorance. But I have the follow class in my project:

class A {
    @Size(max = 4)
    String s;

    get set...
}

and

PodamFactory podam = new PodamFactoryImpl();
A  test = podam.manufacturePojo(A.class);

The attribute s of the test variable was filled with a string of size 10.

What is possibly wrong?

daivanov commented 7 years ago

Hi,

What is @Size annotation class name?

BR, Daniil

hfcipriano commented 7 years ago

Sorry for my bad... I was using 5.3.2 version. When i updated to 7.0.5 works beautiful.

daivanov commented 7 years ago

Ok, good that the problem solved.