<?xml version='1.0'?>
<TestDescriptor>
    <Name>Test the 'restriction' inheritence for complexType support in the Source Generator</Name>
    <Author>Arnaud Blandin</Author>
    <Comment>Regression test case for bug 879</Comment>
    <Comment>The test case doesn't test for validation of the schema</Comment>
    <Category>basic capability</Category>
    <BugFix>
        <Reporter>Heiko Sommer[hsommer@eso.org]</Reporter>
        <Date_Report>2002-02-15</Date_Report>
        <Date_Fix>2002-04-05</Date_Fix>
        <Comment>The fix has led to modification of the generated classes</Comment>
        <Comment>Both the object model and the descriptors are affected by it</Comment>
    </BugFix>

    <SourceGeneratorTest>
        <Schema>Restriction.xsd</Schema>
        <Root_Object random="false" dump="true">MyDerivedElement</Root_Object>
        <UnitTestCase>
            <Name>Test Generation</Name>
            <Input>input1.xml</Input>
            <ObjectBuilder>Restriction_Builder</ObjectBuilder>
        </UnitTestCase>
        <UnitTestCase>
              <Name>Test failure with the default value for element</Name>
              <Input>input_failure_default_element.xml</Input>
              <Failure>true</Failure>
        </UnitTestCase>
        <UnitTestCase>
              <Name>Test failure with the default value for attribute</Name>
              <Input>input_failure_default_attribute.xml</Input>
              <Failure>true</Failure>
        </UnitTestCase>
        <UnitTestCase>
              <Name>Test failure with the cardinality</Name>
              <Input>input_failure_cardinality.xml</Input>
              <Failure>true</Failure>
        </UnitTestCase>
       </SourceGeneratorTest>
</TestDescriptor>