TEST testCase0001 - XmlAccessorType
DESCRIPTION
Jakarta XML Binding specification assertion: JAXB:SPEC:J2S:00047
Mapping: @XmlAccessorType annotation allows control over default serialization of fields and properties.
XmlAccessorType(AccessType.NONE)
NONE - None of the fields or properties is bound to XML unless
they are specifically annotated with some of the Jakarta XML Binding annotations.
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
Item | Value |
title |
testCase0001 - XmlAccessorType |
name |
testCase0001 |
source |
srcNone.java posNone1.xml |
executeClass |
javasoft.sqe.tests.api.jakarta.xml.bind.SchemaGenTest |
keywords |
runtime positive java_to_schema jaxb |
executeArgs |
-j srcNone.java -d posNone1.xml -TestURL $testURL |
selectIf |
toTestOptionalSchemagen |
TEST testCase0002 - XmlAccessorType
DESCRIPTION
Jakarta XML Binding specification assertion: JAXB:SPEC:J2S:00047
Mapping: @XmlAccessorType annotation allows control over default serialization of fields and properties.
XmlAccessorType(AccessType.NONE)
NONE - None of the fields or properties is bound to XML unless
they are specifically annotated with some of the Jakarta XML Binding annotations.
Note: Negative test. Required field that are specifically annotated with some of the Jakarta XML Binding annotations is absent in xml file.
FILES
Item | Value |
title |
testCase0002 - XmlAccessorType |
name |
testCase0002 |
source |
srcNone.java negNone1.xml |
executeClass |
javasoft.sqe.tests.api.jakarta.xml.bind.SchemaGenTest |
keywords |
runtime positive java_to_schema jaxb |
executeArgs |
-j srcNone.java -n -d negNone1.xml -TestURL $testURL |
selectIf |
toTestOptionalSchemagen |
TEST testCase0003 - XmlAccessorType
DESCRIPTION
Jakarta XML Binding specification assertion: JAXB:SPEC:J2S:00047
Mapping: @XmlAccessorType annotation allows control over default serialization of fields and properties.
XmlAccessorType(AccessType.NONE)
NONE - None of the fields or properties is bound to XML unless
they are specifically annotated with some of the Jakarta XML Binding annotations.
Note: Negative test. Xml consists of public fileds and properties that are not specifically annotated with some of the Jakarta XML Binding annotations
FILES
Item | Value |
title |
testCase0003 - XmlAccessorType |
name |
testCase0003 |
source |
srcNone.java negNone2.xml |
executeClass |
javasoft.sqe.tests.api.jakarta.xml.bind.SchemaGenTest |
keywords |
runtime positive java_to_schema jaxb |
executeArgs |
-j srcNone.java -n -d negNone2.xml -TestURL $testURL |
selectIf |
toTestOptionalSchemagen |
%Copyright% © 2017, 2020 Oracle and/or its affiliates. All rights reserved.