TEST testCase0001 - XmlElementRef

DESCRIPTION

Positive test. Assertion from jaxb20 spec JAXB:SPEC:J2S:0215 A field or property annotated with the @XmlElementRef annotation must be mapped as follows: If the type of the property or field is single valued property, then it must be mapped as specified in Table 8-17, "Mapping: Property/field (property type single valued) to Particle with ref attribute," : {term} ::= must be mapped as specified in Table 8-18, "Mapping: Property/field to Element declaration with ref attribute," {name} ::= if @XmlElementRef.type() is @XmlElementRef.DEFAULT.class and the parametric type or the property type (for single valued property) is a jakarta.xml.bind.JAXBElement, then the @XmlElementRef.name()

FILES

ItemValue
title testCase0001 - XmlElementRef
name testCase0001
source src06.java pos06_1.xml
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.J2XRuntimeTest
keywords runtime positive jaxb rtgen
executeArgs -out $testWorkDir -class javasoft.sqe.tests.java2schema.CustomizedMapping.property_fields.XmlElementRef.src06.Math -class javasoft.sqe.tests.java2schema.CustomizedMapping.property_fields.XmlElementRef.src06.ObjectFactory -class javasoft.sqe.tests.java2schema.CustomizedMapping.property_fields.XmlElementRef.src06.Operator -j src06.java -d pos06_1.xml -TestURL $testURL


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