TEST testCase0001 - XmlType

DESCRIPTION

Positive test. Assertion from Jakarta XML Binding Specification - @XmlType {target namespace}: If the class contains a single mapped property or field that is annotated with @XmlValue then class must be mapped as specified: Mapping: Class to Simple Type Definition If @XmlType.namespace() is ?##default? and @XmlType.name() is not empty string, then the namespace to which the package, in which class is defined, is mapped as specified : {target namespace} = @XmlSchema.namespace()

FILES

ItemValue
title testCase0001 - XmlType
name testCase0001
source package-info.java NameSpace011s.java NameSpace011.p.xml
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.SchemaGenTest
keywords positive java_to_schema runtime jaxb
executeArgs -j package-info.java:NameSpace011s.java -d NameSpace011.p.xml -TestURL $testURL
selectIf toTestOptionalSchemagen


TEST testCase0002 - XmlType

DESCRIPTION

Negative test. Assertion from Jakarta XML Binding Specification - @XmlType {target namespace}: If the class contains a single mapped property or field that is annotated with @XmlValue then class must be mapped as specified: Mapping: Class to Simple Type Definition If @XmlType.namespace() is ?##default? and @XmlType.name() is not empty string, then the namespace to which the package, in which class is defined, is mapped as specified : {target namespace} = @XmlSchema.namespace()

FILES

ItemValue
title testCase0002 - XmlType
name testCase0002
source package-info.java NameSpace011s.java NameSpace011.n.xml
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.SchemaGenTest
keywords positive java_to_schema runtime jaxb
executeArgs -j package-info.java:NameSpace011s.java -n -d NameSpace011.n.xml -TestURL $testURL
selectIf toTestOptionalSchemagen


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