Declare an element. Set type="answer" default="true". The content type of type answer is boolean . Check that the schema is valid.

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


TEST valueconstraint00401m5 - default value is set for a complex type with a simple content (valid schema)

FILES

ItemValue
title valueconstraint00401m5 - default value is set for a complex type with a simple content (valid schema)
name valueconstraint00401m5
source ../valueConstraint00401m5.xsd
schemaName ../valueConstraint00401m5.xsd
executeClass com.sun.jaxb_tck.sigtest.JAXBTest
executeArgs -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName valueconstraint00401m5.sig -PackageWithoutSubpackages $package
keywords schema positive
package javasoft.sqe.tests.elemdecl.valueconstraint.valueconstraint00401m.valueconstraint00401m5
signature valueconstraint00401m5.sig


TEST Positive - default value is set for a complex type with a simple content (valid schema)

FILES

ItemValue
title Positive - default value is set for a complex type with a simple content (valid schema)
name Positive
source ../valueConstraint00401m5.xsd
schemaName ../valueConstraint00401m5.xsd
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest
executeArgs -TestURL $testURL -package $package -out :ref -document ../valueConstraint00401m5_p.xml -pcontent valueconstraint00401m5-valueConstraint00401m5_p.jbx
keywords positive document
package javasoft.sqe.tests.elemdecl.valueconstraint.valueconstraint00401m.valueconstraint00401m5
document ../valueConstraint00401m5_p.xml
jb-context valueconstraint00401m5-valueConstraint00401m5_p.jbx


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