Define a key identity constraint with two fields. Ensure that the constraint prevents one key to be defined twice.

http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#cElement_Declarations


TEST idconstrdefs00202m - there must be no multiply-defined ID (valid schema)

FILES

ItemValue
title idconstrdefs00202m - there must be no multiply-defined ID (valid schema)
name idconstrdefs00202m
source ../idConstrDefs00202m.xsd
schemaName ../idConstrDefs00202m.xsd
executeClass com.sun.jaxb_tck.sigtest.JAXBTest
executeArgs -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName idconstrdefs00202m.sig -PackageWithoutSubpackages $package
keywords schema positive
package javasoft.sqe.tests.elemdecl.identityconstraintdefs.idconstrdefs00202m.idconstrdefs00202m
signature idconstrdefs00202m.sig


TEST idConstrDefs00202m1_p - there must be no multiply-defined ID (valid schema)

FILES

ItemValue
title idConstrDefs00202m1_p - there must be no multiply-defined ID (valid schema)
name idConstrDefs00202m1_p
source ../idConstrDefs00202m.xsd
schemaName ../idConstrDefs00202m.xsd
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest
executeArgs -TestURL $testURL -package $package -out :ref -document ../idConstrDefs00202m1_p.xml -pcontent idconstrdefs00202m-idConstrDefs00202m1_p.jbx
keywords positive document
package javasoft.sqe.tests.elemdecl.identityconstraintdefs.idconstrdefs00202m.idconstrdefs00202m
document ../idConstrDefs00202m1_p.xml
jb-context idconstrdefs00202m-idConstrDefs00202m1_p.jbx


%Copyright% © 2017, 2020 Oracle and/or its affiliates. All rights reserved.