TEST testCase0001 - XmlElement

DESCRIPTION

Jakarta XML Binding specification assertion: JAXB:SPEC:J2S:0072.1
@XmlType is used to map a Java class to a schema type.
A class annotated with @XmlType must be mapped as specified:
Mapping: Class to Complex Type Definition
{target namespace} ::=
if @XmlType.namespace() is "##default" && @XmlType.name() is "" and class is annotated with @XmlRootElement, then
as specified in Table 8-7, "Mapping: Class to Element Declaration,"
if @XmlRootElement.namespace() is not "##default", then
@XmlRootElement.namespace()

FILES

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


TEST testCase0002 - XmlElement

DESCRIPTION

Jakarta XML Binding specification assertion: JAXB:SPEC:J2S:0072.1
@XmlType is used to map a Java class to a schema type.
A class annotated with @XmlType must be mapped as specified:
Mapping: Class to Complex Type Definition
{target namespace} ::=
if @XmlType.namespace() is "##default" && @XmlType.name() is "" and class is annotated with @XmlRootElement, then
as specified in Table 8-7, "Mapping: Class to Element Declaration,"
if @XmlRootElement.namespace() is not "##default", then
@XmlRootElement.namespace()

FILES

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


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