TEST src03 - XmlElementRef

DESCRIPTION

Test of XmlElementRef annotation. Negative test. Assertion from API doc, XmlElementRef: If the collection item type (for collection property) or property type (for single valued property) is not jakarta.xml.bind.JAXBElement, then the type referenced by the property or field must be annotated with @XmlRootElement. (Class is not marked with @XmlRootElement)

FILES

Test cases included:

stub.

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


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