The tests for validating the content of changed trees got by unmarshalling of the enumeration-2.xsd based XML documents or created dynamically via ObjectFactory. The schema defines a base64Binary restricted SimpleType with enumeration values "YW13aHRyYXdocGh0eG11aGt2dGluZGt2Z2hjZ21jam5qZnRwZW12cWl1YmVydGRwZQ==", "cmhlYmd0aG9uZnFraXluZWJraGdyYXlsZmI=", "bHlsY2JmaXFjaW9ubmg=", "eXl0dWRlY2NjcW9tcGxhb2lsc2JwcGNnb3R4cWlsZnRsb3ZqaGF3dWJxdmNqZ2dpZ3Jrcw==", "Z2t1dHJtb3lqZmtzZ2d4cWVob29mdnhybWVvdmJ4c3dhZHF0cXZoZWh1ZmJic2RhZ3ljYmVuZXljanJobm5uZHlocw==", "ZmxvZA==". Various XML documents specify various values in the element.


TEST enumeration2_ValidateCTTests - enumeration2 Validate Tree Content tests

DESCRIPTION

The test enumeration2_ValidateCTTests.java contains the following test cases:

DescriptionTestCase
The test unmarshalls enumeration-2-4.xml document, sets valid values "YW13aHRyYXdocGh0eG11aGt2dGluZGt2Z2hjZ21jam5qZnRwZW12cWl1YmVydGRwZQ==", "cmhlYmd0aG9uZnFraXluZWJraGdyYXlsZmI=", "bHlsY2JmaXFjaW9ubmg=", "eXl0dWRlY2NjcW9tcGxhb2lsc2JwcGNnb3R4cWlsZnRsb3ZqaGF3dWJxdmNqZ2dpZ3Jrcw==", "Z2t1dHJtb3lqZmtzZ2d4cWVob29mdnhybWVvdmJ4c3dhZHF0cXZoZWh1ZmJic2RhZ3ljYmVuZXljanJobm5uZHlocw==", "ZmxvZA==" for the base64Binary restricted SimpleType NISTSchema-base64Binary-enumeration-2 element and expects validation to pass. Unmarshalled001
The test unmarshalls enumeration-2-4.xml document, sets the invalid values "abcd", "1234", "1w==", "FBI=" for the base64Binary restricted SimpleType NISTSchema-base64Binary-enumeration-2 element and expects validation to fail. Unmarshalled002
The test creates the base64Binary restricted SimpleType NISTSchema-base64Binary-enumeration-2 element with a valid value, sets its value to "YW13aHRyYXdocGh0eG11aGt2dGluZGt2Z2hjZ21jam5qZnRwZW12cWl1YmVydGRwZQ==", "cmhlYmd0aG9uZnFraXluZWJraGdyYXlsZmI=", "bHlsY2JmaXFjaW9ubmg=", "eXl0dWRlY2NjcW9tcGxhb2lsc2JwcGNnb3R4cWlsZnRsb3ZqaGF3dWJxdmNqZ2dpZ3Jrcw==", "Z2t1dHJtb3lqZmtzZ2d4cWVob29mdnhybWVvdmJ4c3dhZHF0cXZoZWh1ZmJic2RhZ3ljYmVuZXljanJobm5uZHlocw==", "ZmxvZA==" and expects validation to pass. Created001
The test creates the base64Binary restricted SimpleType NISTSchema-base64Binary-enumeration-2 element with a valid value, sets its value to "abcd", "1234", "1w==", "FBI=" then expects validation to fail. Created002

FILES

ItemValue
title enumeration2_ValidateCTTests - enumeration2 Validate Tree Content tests
name enumeration2_ValidateCTTests
source enumeration-2.xsd enumeration2_ValidateCTTests.java
schemaName enumeration-2.xsd
executeClass javasoft.sqe.tests.base64binary.enumeration.enumeration_2.enumeration2_ValidateCTTests
executeArgs -TestURL $testURL -package $package -schema enumeration-2.xsd
keywords positive document runtime
package javasoft.sqe.tests.base64binary.enumeration.enumeration_2


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