Spring Roo
  1. Spring Roo
  2. 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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 1.0.2.RELEASE, 1.1.0.M1
    • Fix Version/s: 1.1.0.M2
    • Component/s: None
    • Labels:
      None

      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().

        Issue Links

          Activity

          Hide
          Alan Stewart added a comment -

          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

          Show
          Alan Stewart added a comment - 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
          Hide
          Alan Stewart added a comment -

          Added support for @Min and @Max

          Show
          Alan Stewart added a comment - Added support for @Min and @Max

            People

            • Assignee:
              Alan Stewart
              Reporter:
              Alan Stewart
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: