The equality and inequality conditions appealed to in checking these constraints apply to the value of the fields selected, so that for example 3.0 and 3 would be conflicting keys if they were both number, but non-conflicting if they were both strings, or one was a string and one a number. In the test the first field of type string has value "3.0". The second field of type decimal has value "-3".
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#cIdentity-constraint_Definitions
TEST fields00202m1 - values of the fields are checked for equality: string(3.0) compares with decimal(-3) (valid schema)
Item | Value |
---|---|
title | fields00202m1 - values of the fields are checked for equality: string(3.0) compares with decimal(-3) (valid schema) |
name | fields00202m1 |
source | ../fields00202m1.xsd |
schemaName | ../fields00202m1.xsd |
executeClass | com.sun.jaxb_tck.sigtest.JAXBTest |
executeArgs | -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName fields00202m1.sig -PackageWithoutSubpackages $package |
keywords | schema positive |
package | javasoft.sqe.tests.idconstrdefs.fields.fields00202m.fields00202m1 |
signature | fields00202m1.sig |
TEST Positive - values of the fields are checked for equality: string(3.0) compares with decimal(-3) (valid schema)
Item | Value |
---|---|
title | Positive - values of the fields are checked for equality: string(3.0) compares with decimal(-3) (valid schema) |
name | Positive |
source | ../fields00202m1.xsd |
schemaName | ../fields00202m1.xsd |
executeClass | javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest |
executeArgs | -TestURL $testURL -package $package -out :ref -document ../fields00202m1_p.xml -pcontent fields00202m1-fields00202m1_p.jbx |
keywords | positive document |
package | javasoft.sqe.tests.idconstrdefs.fields.fields00202m.fields00202m1 |
document | ../fields00202m1_p.xml |
jb-context | fields00202m1-fields00202m1_p.jbx |