TEST testCase0001 - XmlAccessorType

DESCRIPTION

Jakarta XML Binding specification assertion: JAXB:SPEC:J2S:1047
Mapping: @XmlAccessorType annotation allows control over default serialization of fields and properties.
XmlAccessorType(AccessType.NONE)

The annotation XmlAccessorType on a package applies to all classes in the package.
The following inheritance semantics apply:
If there is a XmlAccessorType on a class, then it is used.
Otherwise, if a XmlAccessorType exists on one of its super classes, then it is inherited.
Otherwise, the XmlAccessorType on a package is inherited.
Note: Positive test. Xml consists of all required fileds and properties
that are specifically annotated with some of the Jakarta XML Binding annotations without extra fields or properties.

FILES

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


TEST testCase0002 - XmlAccessorType

DESCRIPTION

Jakarta XML Binding specification assertion: JAXB:SPEC:J2S:1047
Mapping: @XmlAccessorType annotation allows control over default serialization of fields and properties.
XmlAccessorType(AccessType.NONE)

The annotation XmlAccessorType on a package applies to all classes in the package.
The following inheritance semantics apply:
If there is a XmlAccessorType on a class, then it is used.
Otherwise, if a XmlAccessorType exists on one of its super classes, then it is inherited.
Otherwise, the XmlAccessorType on a package is inherited.
Note: Negative test. Required field that are specifically annotated with
some of the Jakarta XML Binding annotations is absent in xml file.

FILES

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


TEST testCase0003 - XmlAccessorType

DESCRIPTION

Jakarta XML Binding specification assertion: JAXB:SPEC:J2S:00047 Jakarta XML Binding specification assertion: JAXB:SPEC:J2S:1047
Mapping: @XmlAccessorType annotation allows control over default serialization of fields and properties.
XmlAccessorType(AccessType.NONE)

The annotation XmlAccessorType on a package applies to all classes in the package.
The following inheritance semantics apply:
If there is a XmlAccessorType on a class, then it is used.
Otherwise, if a XmlAccessorType exists on one of its super classes, then it is inherited.
Otherwise, the XmlAccessorType on a package is inherited.
Note: Negative test. Xml consists of public fileds and properties that are not specifically annotated with some of the Jakarta XML Binding annotations

FILES

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


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