<?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>TestComplexTypeRestrictionWithCardinalityReduced</Name>
    <Author>Werner Guttmann</Author>
    <Comment>
        Tests Castor's &lt;complexType&gt; restriction where cardinality of a content
        member is reduced.
    </Comment>
    <Category>special case</Category>
    <SourceGeneratorTest>
        <Schema>test.xsd</Schema>
        <Root_Object random="false" dump="true">SampleRq</Root_Object>
        <UnitTestCase>
            <Name>Test Generation</Name>
            <Input>input.xml</Input>
            <GoldFile>input.xml</GoldFile>
        </UnitTestCase>
        <UnitTestCase>
            <Name>Test Generation With Wrong Input</Name>
            <Input>input-wrong.xml</Input>
            <Failure>true</Failure>
        </UnitTestCase>
    </SourceGeneratorTest>
</TestDescriptor>
