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


TEST minLength2_ValidateCTTests - minLength2 Validate Tree Content tests

DESCRIPTION

The test minLength2_ValidateCTTests.java contains the following test cases:

DescriptionTestCase
The test unmarshalls minLength-2-4.xml document, sets valid values "eGZhbXBqYnNh", "bGpwc3RwYnV5cGNydHh5aW1mdXh0cnlvbg==", "ZWVpd2dhaXVqZmh5dGl5ZmJhbmFnbndzbmNsZmJ4cmlxd2puZ3Nub24=", "Z3l3cGdwb2N3ZHB0dnZhcGZwcGZoYmt1a2tvZGN3dGtwYmJ3aGRhcndnamVyaXluaHdqY3B3bGdy", "bXF0Z2Vza2NqZm9nc3VteWZicGdpdGNydGRjcmhmbnFoZmdvd2RmaXhpamtkaGRtY3FicGZrd3hwZmhtbHRhZmVxd2ptdXRtaw==", for the base64Binary restricted SimpleType NISTSchema-base64Binary-minLength-2 element and expects validation to pass. Unmarshalled001
The test unmarshalls minLength-2-4.xml document, sets the invalid values "", "AA==", "AAA=", "eGZhbXBqYn4=" for the base64Binary restricted SimpleType NISTSchema-base64Binary-minLength-2 element and expects validation to fail. Unmarshalled002
The test creates the base64Binary restricted SimpleType NISTSchema-base64Binary-minLength-2 element with a valid value, sets its value to "eGZhbXBqYnNh", "bGpwc3RwYnV5cGNydHh5aW1mdXh0cnlvbg==", "ZWVpd2dhaXVqZmh5dGl5ZmJhbmFnbndzbmNsZmJ4cmlxd2puZ3Nub24=", "Z3l3cGdwb2N3ZHB0dnZhcGZwcGZoYmt1a2tvZGN3dGtwYmJ3aGRhcndnamVyaXluaHdqY3B3bGdy", "bXF0Z2Vza2NqZm9nc3VteWZicGdpdGNydGRjcmhmbnFoZmdvd2RmaXhpamtkaGRtY3FicGZrd3hwZmhtbHRhZmVxd2ptdXRtaw==", and expects validation to pass. Created001
The test creates the base64Binary restricted SimpleType NISTSchema-base64Binary-minLength-2 element with a valid value, sets its value to "", "AA==", "AAA=", "eGZhbXBqYn4=" then expects validation to fail. Created002

FILES

ItemValue
title minLength2_ValidateCTTests - minLength2 Validate Tree Content tests
name minLength2_ValidateCTTests
source minLength-2.xsd minLength2_ValidateCTTests.java
schemaName minLength-2.xsd
executeClass javasoft.sqe.tests.base64binary.minlength.minlength_2.minLength2_ValidateCTTests
executeArgs -TestURL $testURL -package $package -schema minLength-2.xsd
keywords positive document runtime
package javasoft.sqe.tests.base64binary.minlength.minlength_2


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