TEST testCase0001 - XmlType

DESCRIPTION

Positive test. Assertion from Jakarta XML Binding Specification - XmlType {target namespace}: Mapping: Class to Complex Type Definition if XmlType.namespace() is ##default and XmlType.name() is empty string and class is annotated with XmlRootElement, then the {target namespace} as specified: if @XmlRootElement.namespace() is ##default, then the value of the targetNamespace to which the package containing the class is mapped as specified by @XmlSchema.namespace()

FILES

ItemValue
title testCase0001 - XmlType
name testCase0001
source package-info.java NameSpace001c.java NameSpace001.p.xml
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.J2XRuntimeTest
keywords positive runtime jaxb rtgen
executeArgs -out $testWorkDir -class javasoft.sqe.tests.java2schema.CustomizedMapping.classes.XmlType.namespace.NameSpace001c -j package-info.java:NameSpace001c.java -d NameSpace001.p.xml -TestURL $testURL


TEST testCase0002 - XmlType

DESCRIPTION

Negative test. Assertion from Jakarta XML Binding Specification - XmlType {target namespace}: Mapping: Class to Complex Type Definition if XmlType.namespace() is ##default and XmlType.name() is empty string and class is annotated with XmlRootElement, then the {target namespace} as specified: if @XmlRootElement.namespace() is ##default, then the value of the targetNamespace to which the package containing the class is mapped as specified by XmlSchema.namespace()

FILES

ItemValue
title testCase0002 - XmlType
name testCase0002
source package-info.java NameSpace001c.java NameSpace001.n.xml
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.J2XRuntimeTest
keywords positive runtime jaxb rtgen
executeArgs -out $testWorkDir -class javasoft.sqe.tests.java2schema.CustomizedMapping.classes.XmlType.namespace.NameSpace001c -j package-info.java:NameSpace001c.java -n -d NameSpace001.n.xml -TestURL $testURL


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