Compile a simple schema to create a java binding classes. Test UnmarshallerHandler's method getResult() using this JAXBContext's unmarshaller.


TEST UnmarshallerHandler_CTTests - getResult tests. (content tree test)

DESCRIPTION

The test UnmarshallerHandler_CTTests.java contains the following test cases:

DescriptionTestCase
The test creates an unmarshaller object and parse a simple xml document by calling directly methods of the class UnmarshallerHandler. Then call the method getResult() to obtain the unmarshalled object. The object is expected to be an instance of the class JAXBElement{String} and contain some string. getResult001
The test creates an unmarshaller object then call the method getResult(). The method is expected to throw IllegalStateException. getResult002
The test creates an unmarshaller object and parse a simple xml document by calling directly methods of the class UnmarshallerHandler. Before the method endDocument the method getResult() is called. The method is expected to throw IllegalStateException. getResult003

FILES

ItemValue
title UnmarshallerHandler_CTTests - getResult tests. (content tree test)
name UnmarshallerHandler_CTTests
source ObjectFactory.java UnmarshallerHandler_CTTests.java
schemaName UnmarshallerHandler.xsd
executeClass javasoft.sqe.tests.bind.unmarshallerhandler.UnmarshallerHandler_CTTests
executeArgs -TestURL $testURL -package $package -schema UnmarshallerHandler.xsd
keywords positive document runtime
package javasoft.sqe.tests.bind.unmarshallerhandler


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