Announcement Announcement Module
Collapse
No announcement yet.
Problem with field string regex Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with field string regex

    Hi all,

    I have a problem with a string field defined by a regular expression. The steps to reproduce this problem are quite simple:

    Code:
    project --topLevelPackage example --projectName example --java 7 --packaging JAR
    jpa setup --provider ECLIPSELINK --database HYPERSONIC_IN_MEMORY
    entity jpa --class ~.domain.Artist --testAutomatically
    field string --fieldName homepage --regexp "^http://\S*$"
    perform tests
    Most of the tests fail with the following error message:

    Code:
    testCountArtists(example.domain.ArtistIntegrationTest): [ConstraintDescriptorImpl{annotation=javax.validation.constraints.Pattern, payloads=[], hasComposingConstraints=true, isReportAsSingleInvalidConstraint=false, elementType=FIELD, definedOn=DEFINED_LOCALLY, groups=[interface javax.validation.groups.Default], attributes={message={javax.validation.constraints.Pattern.message}, payload=[Ljava.lang.Class;@7df8dab3, flags=[Ljavax.validation.constraints.Pattern$Flag;@5cde5e61, regexp=^http://\S*$, groups=[Ljava.lang.Class;@b0661e9}}:muss auf Ausdruck "^http://\S*$" passen=homepage_0]
    (Sorry for the german statements at the end)

    What is wrong with those steps?

    Any help is appreciated.
    Thanks in advance
    Jan
Working...
X