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


TEST maxLength2_ValidateCTTests - maxLength2 Validate Tree Content tests

DESCRIPTION

The test maxLength2_ValidateCTTests.java contains the following test cases:

DescriptionTestCase
The test unmarshalls maxLength-2-4.xml document, sets valid values "dQ==", "bGtiYmZvYnZyYw==", "b2V1bHBneXRrZXZtbWFjZWxyZ2hlcWdyYWlkbA==", "ZnNtZWJtcGJjcGVudm9mbmJ2b2VlbHlqdmZqcG9nbGl4dHRucg==", "", "YmNzZ2JzcXNwY2dtdmd0dmVp", "1234567890123456789012345678901234567890123456789A==" for the base64Binary restricted SimpleType NISTSchema-base64Binary-maxLength-2 element and expects validation to pass. Unmarshalled001
The test unmarshalls maxLength-2-4.xml document, sets the invalid values "1234567890123456789012345678901234567890123456789AA=", "1234567890123456789012345678901234567890123456789AA/" for the base64Binary restricted SimpleType NISTSchema-base64Binary-maxLength-2 element and expects validation to fail. Unmarshalled002
The test creates the base64Binary restricted SimpleType NISTSchema-base64Binary-maxLength-2 element with a valid value, sets its value to "dQ==", "bGtiYmZvYnZyYw==", "b2V1bHBneXRrZXZtbWFjZWxyZ2hlcWdyYWlkbA==", "ZnNtZWJtcGJjcGVudm9mbmJ2b2VlbHlqdmZqcG9nbGl4dHRucg==", "", "YmNzZ2JzcXNwY2dtdmd0dmVp", "1234567890123456789012345678901234567890123456789A==" and expects validation to pass. Created001
The test creates the base64Binary restricted SimpleType NISTSchema-base64Binary-maxLength-2 element with a valid value, sets its value to "1234567890123456789012345678901234567890123456789AA=", "1234567890123456789012345678901234567890123456789AA/" then expects validation to fail. Created002

FILES

ItemValue
title maxLength2_ValidateCTTests - maxLength2 Validate Tree Content tests
name maxLength2_ValidateCTTests
source maxLength-2.xsd maxLength2_ValidateCTTests.java
schemaName maxLength-2.xsd
executeClass javasoft.sqe.tests.base64binary.maxlength.maxlength_2.maxLength2_ValidateCTTests
executeArgs -TestURL $testURL -package $package -schema maxLength-2.xsd
keywords positive document runtime
package javasoft.sqe.tests.base64binary.maxlength.maxlength_2


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