[ROO-946] Unit tests fail when DoD-generated values for String fields annotated with @Size are outside the range of the specified min and/or max attribute values Created: 01/Jun/10  Updated: 23/Oct/10  Resolved: 01/Jun/10

Status: Closed
Project: Spring Roo
Component/s: None
Affects Version/s: 1.0.2.RELEASE, 1.1.0.M1
Fix Version/s: 1.1.0.M2

Type: Bug Priority: Minor
Reporter: Alan Stewart Assignee: Alan Stewart
Resolution: Complete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to ROO-1176 DataOnDemand and Number Fields - Unit... Closed

 Description   

When generated data on demand values for fields are not within the length range specified in the @Size annotation, unit tests fail during a persist().



 Comments   
Comment by Alan Stewart [ 01/Jun/10 ]

Fix committed in git cc0a71f. Values for fields annotated with @Size are padded out to meet the "min" size requirement if specified, and truncated to meet the "max" size requirement if specified

Comment by Alan Stewart [ 06/Jun/10 ]

Added support for @Min and @Max

Generated at Mon Aug 20 16:11:57 UTC 2018 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.