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 base64Binary restricted SimpleType with pattern value "[a-zA-Z0-9+/]{8}". 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 "cnZ0c2Fk", "b3loYXJ1", "aXZwdnhk", "bXd2bG10", "anFkeXN3", "AAA/AAA+", for the base64Binary restricted SimpleType NISTSchema-base64Binary-pattern-2 element and expects validation to pass. Unmarshalled001
The test unmarshalls pattern-2-4.xml document, sets the invalid values "", "AAAA", "AAAAAAA=", "CAFEAA==", "AAAAAAAAAAAA" for the base64Binary restricted SimpleType NISTSchema-base64Binary-pattern-2 element and expects validation to fail. Unmarshalled002
The test creates the base64Binary restricted SimpleType NISTSchema-base64Binary-pattern-2 element with a valid value, sets its value to "cnZ0c2Fk", "b3loYXJ1", "aXZwdnhk", "bXd2bG10", "anFkeXN3", "AAA/AAA+", and expects validation to pass. Created001
The test creates the base64Binary restricted SimpleType NISTSchema-base64Binary-pattern-2 element with a valid value, sets its value to "", "AAAA", "AAAAAAA=", "CAFEAA==", "AAAAAAAAAAAA" 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.base64binary.pattern.pattern_2.pattern2_ValidateCTTests
executeArgs -TestURL $testURL -package $package -schema pattern-2.xsd
keywords positive document runtime
package javasoft.sqe.tests.base64binary.pattern.pattern_2


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