The tests for checking the on-demand validator of trees got by unmarshalling of a pattern-2.xsd based XML document and created dynamically via ObjectFactory. The schema defines a unsignedByte restricted SimpleType with pattern value "\d{2}".


TEST pattern2_ValidateCTTests - pattern2 Validate Tree Content tests

DESCRIPTION

The test pattern2_ValidateCTTests.java contains the following test cases:

DescriptionTestCase
The test unmarshalls pattern-2-1.xml document which specifies valid value 72 for the unsignedByte restricted SimpleType NISTSchema-unsignedByte-pattern-2 element, sets the values: 10, 11, 50, 99 and expects validation to pass. Validate001
The test unmarshalls pattern-2-1.xml document which specifies valid value 72 for the unsignedByte restricted SimpleType NISTSchema-unsignedByte-pattern-2 element, sets the values: 9, 0, -5, -10, -99, -400, 100, 255, 400 and expects validation to fail. Validate002
The test creates an instance of unsignedByte restricted SimpleType NISTSchema-unsignedByte-pattern-2 type, sets the values: 10, 11, 50, 99 and expects validation to pass. Validate003
The test creates an instance of unsignedByte restricted SimpleType NISTSchema-unsignedByte-pattern-2 type, sets the values: 9, 0, -5, -10, -99, -400, 100, 255, 400 and expects validation to fail. Validate004

FILES

ItemValue
title pattern2_ValidateCTTests - pattern2 Validate Tree Content tests
name pattern2_ValidateCTTests
source pattern-2.xsd pattern2_ValidateCTTests.java
schemaName pattern-2.xsd
executeClass javasoft.sqe.tests.unsignedbyte.pattern.pattern_2.pattern2_ValidateCTTests
executeArgs -TestURL $testURL -package $package -schema pattern-2.xsd
keywords positive document runtime
package javasoft.sqe.tests.unsignedbyte.pattern.pattern_2


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