The tests for validating the content of changed trees got by unmarshalling of the pattern-1.xsd based XML documents or created dynamically via ObjectFactory. The schema defines an anyURI restricted SimpleType with pattern value "ftp://ftp.[a-z]{12}.com". Various XML documents specify various values in the element.


TEST pattern1_ValidateCTTests - pattern1 Validate Tree Content tests

DESCRIPTION

The test pattern1_ValidateCTTests.java contains the following test cases:

DescriptionTestCase
The test unmarshalls pattern-1-4.xml document, sets valid values "ftp://ftp.guidelinesdu.com", "ftp://ftp.theinstandar.com", "ftp://ftp.intherelated.com", "ftp://ftp.forenvironme.com", "ftp://ftp.buildroleand.com" for the anyURI restricted SimpleType NISTSchema-anyURI-pattern-1 element and expects validation to pass. Unmarshalled001
The test unmarshalls pattern-1-4.xml document, sets the invalid values "", "ftp://ftp.guidelinesd1.com", "ftp://ftp.theinstandar.edu", "http://ftp.theinstandar.com", for the anyURI restricted SimpleType NISTSchema-anyURI-pattern-1 element and expects validation to fail. Unmarshalled002
The test creates the anyURI restricted SimpleType NISTSchema-anyURI-pattern-1 element with a valid value, sets its value to "ftp://ftp.guidelinesdu.com", "ftp://ftp.theinstandar.com", "ftp://ftp.intherelated.com", "ftp://ftp.forenvironme.com", "ftp://ftp.buildroleand.com" and expects validation to pass. Created001
The test creates the anyURI restricted SimpleType NISTSchema-anyURI-pattern-1 element with a valid value, sets its value to "", "ftp://ftp.guidelinesd1.com", "ftp://ftp.theinstandar.edu", "http://ftp.theinstandar.com", then expects validation to fail. Created002

FILES

ItemValue
title pattern1_ValidateCTTests - pattern1 Validate Tree Content tests
name pattern1_ValidateCTTests
source pattern-1.xsd pattern1_ValidateCTTests.java
schemaName pattern-1.xsd
executeClass javasoft.sqe.tests.anyuri.pattern.pattern_1.pattern1_ValidateCTTests
executeArgs -TestURL $testURL -package $package -schema pattern-1.xsd
keywords positive document runtime
package javasoft.sqe.tests.anyuri.pattern.pattern_1


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