TEST testCase0001 - XmlElementRef

DESCRIPTION

Positive test. Assertion from jaxb20 spec, XmlElementRef, table 8-18 "Mapping: Property/field to Element declaration with ref attribute", {name}: if @XmlElementRef.type() is @XmlElementRef.DEFAULT.class and the property type is not jakarta.xml.bind.JAXBElement, then the XML name @XmlRootElement.name() on the type being referenced.

FILES

ItemValue
title testCase0001 - XmlElementRef
name testCase0001
source src04.java pos04_1.xml
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.SchemaGenTest
keywords runtime positive java_to_schema jaxb
executeArgs -j src04.java -d pos04_1.xml -TestURL $testURL
selectIf toTestOptionalSchemagen


TEST testCase0002 - XmlElementRef

DESCRIPTION

Negative test. Assertion from jaxb20 spec, XmlElementRef, Table 8-17 Mapping: Property/field (property type single valued) to Particle with ref attribute {min occurs}: 1

FILES

ItemValue
title testCase0002 - XmlElementRef
name testCase0002
source src04.java neg04_1.xml
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.SchemaGenTest
keywords runtime positive java_to_schema jaxb
executeArgs -j src04.java -n -d neg04_1.xml -TestURL $testURL
selectIf toTestOptionalSchemagen


TEST testCase0003 - XmlElementRef

DESCRIPTION

Negative test. Assertion from jaxb20 spec, XmlElementRef, Table 8-17 Mapping: Property/field (property type single valued) to Particle with ref attribute {max occurs}: 1

FILES

ItemValue
title testCase0003 - XmlElementRef
name testCase0003
source src04.java neg04_2.xml
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.SchemaGenTest
keywords runtime positive java_to_schema jaxb
executeArgs -j src04.java -n -d neg04_2.xml -TestURL $testURL
selectIf toTestOptionalSchemagen


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