Compile a simple schema to create a java binding classes. Test an available implementation of the jakarta.xml.bind.Marshaller interface using this context.


TEST Marshaller_CTTests - Providers Marshaller implementation tests. (content tree test)

DESCRIPTION

The test Marshaller_CTTests.java contains the following test cases:

DescriptionTestCase
The default event handler is returned by getEventHandler() if no handler has been set. Get001
getProperty(name) throws PropertyException when there is an error retrieving the given property or value property name. Get003
setProperty("jaxb.encoding", "UTF-8"), then expect getProperty("jaxb.encoding") to return what has been set. Get004
marshal(Object obj, ContentHandler handler) marshals the content tree rooted at obj into SAX2 events. Marshal001
marshal(Object obj, Node node) marshals the content tree rooted at obj into a DOM tree. Marshal002
marshal(Object obj, OutputStream os) marshals the content tree rooted at obj into an output stream. Marshal003
marshal(Object obj, Writer w) marshals the content tree rooted at obj into a Writer. Marshal004
marshal(Object obj, Result result) marshals the content tree rooted at obj into a DOMResult. Marshal005
marshal(Object obj, Result result) marshals the content tree rooted at obj into a SAXResult. Marshal006
marshal(Object obj, Result result) marshals the content tree rooted at obj into a StreamResult. Marshal007
setEventHandler(ValidationEventHandler handler) allows an application to register a validation event handler. Set001

FILES

ItemValue
title Marshaller_CTTests - Providers Marshaller implementation tests. (content tree test)
name Marshaller_CTTests
source ObjectFactory.java Marshaller_CTTests.java
schemaName Marshaller.xsd
executeClass javasoft.sqe.tests.bind.marshaller.Marshaller_CTTests
executeArgs -TestURL $testURL -package $package -schema Marshaller.xsd
keywords positive document runtime
package javasoft.sqe.tests.bind.marshaller


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