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


TEST length2_ValidateCTTests - length2 Validate Tree Content tests

DESCRIPTION

The test length2_ValidateCTTests.java contains the following test cases:

DescriptionTestCase
The test unmarshalls length-2-4.xml document, sets valid values "AAA=", "cmM=", "Ynk=", "cXM=", "a3c=", "c20=" for the base64Binary restricted SimpleType NISTSchema-base64Binary-length-2 element and expects validation to pass. Unmarshalled001
The test unmarshalls length-2-4.xml document, sets the invalid values "", "1234", "1w==", "AAAAcXM=" for the base64Binary restricted SimpleType NISTSchema-base64Binary-length-2 element and expects validation to fail. Unmarshalled002
The test creates the base64Binary restricted SimpleType NISTSchema-base64Binary-length-2 element with a valid value, sets its value to "AAA=", "cmM=", "Ynk=", "cXM=", "a3c=", "c20=" and expects validation to pass. Created001
The test creates the base64Binary restricted SimpleType NISTSchema-base64Binary-length-2 element with a valid value, sets its value to "", "1234", "1w==", "AAAAcXM=" then expects validation to fail. Created002

FILES

ItemValue
title length2_ValidateCTTests - length2 Validate Tree Content tests
name length2_ValidateCTTests
source length-2.xsd length2_ValidateCTTests.java
schemaName length-2.xsd
executeClass javasoft.sqe.tests.base64binary.length.length_2.length2_ValidateCTTests
executeArgs -TestURL $testURL -package $package -schema length-2.xsd
keywords positive document runtime
package javasoft.sqe.tests.base64binary.length.length_2


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