package uk.co.jemos.podam.test.dto;

import javax.validation.constraints.Size;

/**
 * POJO to test Issue 110
 * <p>
 *     When a String is annotated with @Size and only min value is defined,
 *     Podam should allow for sensible, max defaults
 * </p>
 * Created by tedonema on 26/06/2015.
 */
public class ValidationPojoForStringWithSizeAndNoMax {

    @Size(min = 0)
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ValidationPojoForStringWithSizeAndNoMax{");
        sb.append("name='").append(name).append('\'');
        sb.append('}');
        return sb.toString();
    }
}

@@ -516,24 +516,208 @@
 ame;%0A    %7D%0A%0A
+    @Size(max = 100)%0A    private String name2;%0A%0A    public String getName2() %7B%0A        return name2;%0A    %7D%0A%0A    public void setName2(String name2) %7B%0A        this.name2 = name2;%0A    %7D%0A%0A
     @Overrid
@@ -896,24 +896,81 @@
 pend('%5C'');%0A
+        sb.append(%22name2='%22).append(name2).append('%5C'');%0A
         sb.a

Test pojo reported in Issue #276 with default factory