<?xml version='1.0'?>
<TestDescriptor xmlns="http://castor.exolab.org/Test" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://castor.exolab.org/Test http://castor.exolab.org/Test">
    <Name>Test xsd:union schema facets</Name>
    <Author>Werner Guttmann</Author>
    <Comment>Test to ensure that facets as defined on member types of a union are propagated to 
    correct validation code</Comment>
    <Category>basic capability</Category>

    <SourceGeneratorTest>
        <Schema>test.xsd</Schema>
        <Root_Object random="false" dump="true">HomeZip</Root_Object>
        <UnitTestCase>
            <Name>TestGenerationOK</Name>
            <Input>input.xml</Input>
        </UnitTestCase>
        <UnitTestCase>
            <Name>TestGenerationFailMax</Name>
            <Input>fail-max.xml</Input>
            <Failure>true</Failure>
        </UnitTestCase>
        <UnitTestCase>
            <Name>TestGenerationFailMin</Name>
            <Input>fail-min.xml</Input>
            <Failure>true</Failure>
        </UnitTestCase>
    </SourceGeneratorTest>
</TestDescriptor>
