File: TestDescriptor.xml

package info (click to toggle)
castor 1.3.2-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 44,976 kB
  • sloc: java: 206,032; xml: 95,088; sql: 14,460; sh: 365; makefile: 10
file content (40 lines) | stat: -rw-r--r-- 1,946 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?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 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>