Hi all,
I have a problem with a string field defined by a regular expression. The steps to reproduce this problem are quite simple:
Most of the tests fail with the following error message: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
(Sorry for the german statements at the end)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]
What is wrong with those steps?
Any help is appreciated.
Thanks in advance
Jan


Reply With Quote