The tests for validating the content of changed trees got by unmarshalling of the maxLength-1.xsd based XML documents or created dynamically via ObjectFactory. The schema defines an anyURI restricted SimpleType with maxLength value 11. Various XML documents specify various values in the element.


TEST maxLength1_ValidateCTTests - maxLength1 Validate Tree Content tests

DESCRIPTION

The test maxLength1_ValidateCTTests.java contains the following test cases:

DescriptionTestCase
The test unmarshalls maxLength-1-4.xml document, sets valid values "ftp://w.edu", "ftp://f.b.i", "http://x.l", "mailto:2@me" for the anyURI restricted SimpleType NISTSchema-anyURI-maxLength-1 element and expects validation to pass. Unmarshalled001
The test unmarshalls maxLength-1-4.xml document, sets the invalid values "http://xx.xxx.l", "ftp://p.s.v.i", "mailto://mail@box.com" for the anyURI restricted SimpleType NISTSchema-anyURI-maxLength-1 element and expects validation to fail. Unmarshalled002
The test creates the anyURI restricted SimpleType NISTSchema-anyURI-maxLength-1 element with a valid value, sets its value to "ftp://w.edu", "ftp://f.b.i", "http://x.l", "mailto:2@me" and expects validation to pass. Created001
The test creates the anyURI restricted SimpleType NISTSchema-anyURI-maxLength-1 element with a valid value, sets its value to "http://xx.xxx.l", "ftp://p.s.v.i", "mailto://mail@box.com" then expects validation to fail. Created002

FILES

ItemValue
title maxLength1_ValidateCTTests - maxLength1 Validate Tree Content tests
name maxLength1_ValidateCTTests
source maxLength-1.xsd maxLength1_ValidateCTTests.java
schemaName maxLength-1.xsd
executeClass javasoft.sqe.tests.anyuri.maxlength.maxlength_1.maxLength1_ValidateCTTests
executeArgs -TestURL $testURL -package $package -schema maxLength-1.xsd
keywords positive document runtime
package javasoft.sqe.tests.anyuri.maxlength.maxlength_1


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