Declare an element. Specify the following: type="xsd:string" fixed="alpha". Check that the declaration is valid.
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#cElement_Declarations
TEST valueconstraint01001m7 - fixed value constraint with string type (valid schema)
| Item | Value |
|---|---|
| title | valueconstraint01001m7 - fixed value constraint with string type (valid schema) |
| name | valueconstraint01001m7 |
| source | ../valueConstraint01001m7.xsd |
| schemaName | ../valueConstraint01001m7.xsd |
| executeClass | com.sun.jaxb_tck.sigtest.JAXBTest |
| executeArgs | -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName valueconstraint01001m7.sig -PackageWithoutSubpackages $package |
| keywords | schema positive |
| package | javasoft.sqe.tests.elemdecl.valueconstraint.valueconstraint01001m.valueconstraint01001m7 |
| signature | valueconstraint01001m7.sig |
TEST Positive - fixed value constraint with string type (valid schema)
| Item | Value |
|---|---|
| title | Positive - fixed value constraint with string type (valid schema) |
| name | Positive |
| source | ../valueConstraint01001m7.xsd |
| schemaName | ../valueConstraint01001m7.xsd |
| executeClass | javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest |
| executeArgs | -TestURL $testURL -package $package -out :ref -document ../valueConstraint01001m7_p.xml -pcontent valueconstraint01001m7-valueConstraint01001m7_p.jbx |
| keywords | positive document |
| package | javasoft.sqe.tests.elemdecl.valueconstraint.valueconstraint01001m.valueconstraint01001m7 |
| document | ../valueConstraint01001m7_p.xml |
| jb-context | valueconstraint01001m7-valueConstraint01001m7_p.jbx |