The tests for validating the content of changed trees got by unmarshalling of the pattern-2.xsd based XML documents or created dynamically via ObjectFactory. The schema defines a float restricted SimpleType with pattern "\d{1}\.\d{4}E\-\d{2}". Various XML documents specify various values in the element.


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-4.xml document, sets valid values 6.3537E-12, 1.2345E-13 for the float restricted SimpleType NISTSchema-float-pattern-2 element and expects validation to pass. Unmarshalled001
The test unmarshalls pattern-2-4.xml document, sets the invalid values 1.0, 1.1E-11, Float.MAX_VALUE, Float.NEGATIVE_INFINITY, Float.NaN for the float restricted SimpleType NISTSchema-float-pattern-2 element and expects validation to fail. Unmarshalled002
The test creates the float restricted SimpleType NISTSchema-float-pattern-2 element with a valid value, sets its value to 6.3537E-12, 1.2345E-13 and expects validation to pass. Created001
The test creates the float restricted SimpleType NISTSchema-float-pattern-2 element with a valid value, sets its value to 1.0, 1.1E-11, Float.MAX_VALUE, Float.NEGATIVE_INFINITY, Float.NaN then expects validation to fail. Created002

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._float.pattern.pattern_2.pattern2_ValidateCTTests
executeArgs -TestURL $testURL -package $package -schema pattern-2.xsd
keywords positive document runtime
package javasoft.sqe.tests._float.pattern.pattern_2


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