TEST testCase0001 - XmlAccessorType

DESCRIPTION

Jakarta XML Binding specification assertion: JAXB:SPEC:J2S:00045
Mapping: @XmlAccessorType annotation allows control over default serialization of fields and properties.
@XmlAccessorType(AccessType.FIELD)
FIELD - Every non static, non transient field in a Jakarta XML Binding-bound class will be automatically bound to XML,
unless annotated by XmlTransient.
Note: Positive test. Xml consists of all required fileds without extra fields or properties.

FILES

ItemValue
title testCase0001 - XmlAccessorType
name testCase0001
source srcField.java posField1.xml
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.J2XRuntimeTest
keywords runtime positive jaxb rtgen
executeArgs -out $testWorkDir -class javasoft.sqe.tests.java2schema.CustomizedMapping.packages.XmlAccessorType.srcField.src -j srcField.java -d posField1.xml -TestURL $testURL


TEST testCase0002 - XmlAccessorType

DESCRIPTION

Jakarta XML Binding specification assertion: JAXB:SPEC:J2S:00045
Mapping: @XmlAccessorType annotation allows control over default serialization of fields and properties.
@XmlAccessorType(AccessType.FIELD)
FIELD - Every non static, non transient field in a Jakarta XML Binding-bound class will be automatically bound to XML,
unless annotated by XmlTransient.
Note: Negative test. Required field is absent in xml file.

FILES

ItemValue
title testCase0002 - XmlAccessorType
name testCase0002
source srcField.java negField1.xml
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.J2XRuntimeTest
keywords runtime positive jaxb rtgen
executeArgs -out $testWorkDir -class javasoft.sqe.tests.java2schema.CustomizedMapping.packages.XmlAccessorType.srcField.src -j srcField.java -n -d negField1.xml -TestURL $testURL


TEST testCase0003 - XmlAccessorType

DESCRIPTION

Jakarta XML Binding specification assertion: JAXB:SPEC:J2S:00045
Mapping: @XmlAccessorType annotation allows control over default serialization of fields and properties.
@XmlAccessorType(AccessType.FIELD)
FIELD - Every non static, non transient field in a Jakarta XML Binding-bound class will be automatically bound to XML,
unless annotated by XmlTransient.
Note: Negative test. Xml file contains extraneous property

FILES

ItemValue
title testCase0003 - XmlAccessorType
name testCase0003
source srcField.java negField2.xml
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.J2XRuntimeTest
keywords runtime positive jaxb rtgen
executeArgs -out $testWorkDir -class javasoft.sqe.tests.java2schema.CustomizedMapping.packages.XmlAccessorType.srcField.src -j srcField.java -n -d negField2.xml -TestURL $testURL


TEST testCase0004 - XmlAccessorType

DESCRIPTION

Jakarta XML Binding specification assertion: JAXB:SPEC:J2S:00045
Mapping: @XmlAccessorType annotation allows control over default serialization of fields and properties.
@XmlAccessorType(AccessType.FIELD)
FIELD - Every non static, non transient field in a Jakarta XML Binding-bound class will be automatically bound to XML,
unless annotated by XmlTransient.
Note: Negative test. Xml file contains extraneous field (transient field in java file)

FILES

ItemValue
title testCase0004 - XmlAccessorType
name testCase0004
source srcField.java negField3.xml
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.J2XRuntimeTest
keywords runtime positive jaxb rtgen
executeArgs -out $testWorkDir -class javasoft.sqe.tests.java2schema.CustomizedMapping.packages.XmlAccessorType.srcField.src -j srcField.java -n -d negField3.xml -TestURL $testURL


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