Tuscany
  1. Tuscany
  2. TUSCANY-1079

Possible error in XSDSerialization tests

    Details

      Description

      The current test cases are expecting 2 types to be created from the following schema but does not contain assertions about what those types should look like. I would expect this schema to create only one type (http://www.example.com/simple#Quote) and one open content property (stockQuote) of that type. What other type should be created?

      Thanks,

      Andy.

      <xsd:schema
      targetNamespace="http://www.example.com/simple"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:simple="http://www.example.com/simple">

      <xsd:element name="stockQuote" type="simple:Quote"/>

      <xsd:complexType name="Quote">
      <xsd:sequence>
      <xsd:element name="symbol" type="xsd:string"/>
      <xsd:element name="companyName" type="xsd:string"/>
      <xsd:element name="price" type="xsd:decimal"/>
      <xsd:element name="open1" type="xsd:decimal"/>
      <xsd:element name="high" type="xsd:decimal"/>
      <xsd:element name="low" type="xsd:decimal"/>
      <xsd:element name="volume" type="xsd:double"/>
      <xsd:element name="change1" type="xsd:double"/>
      <xsd:element name="quotes" type="simple:Quote" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
      </xsd:complexType>

      </xsd:schema>

        Activity

        Hide
        ant elder added a comment -

        Closing because this has been in RESOLVED state for over one year, if it turns out to not be fixed please reopen.

        Show
        ant elder added a comment - Closing because this has been in RESOLVED state for over one year, if it turns out to not be fixed please reopen.
        Hide
        Andy Grove added a comment -

        Thanks for clearing that up. I was forgetting about DocumentRoot. I'm marking this JIRA as fixed.

        Andy.

        Show
        Andy Grove added a comment - Thanks for clearing that up. I was forgetting about DocumentRoot. I'm marking this JIRA as fixed. Andy.
        Hide
        Yang ZHONG added a comment -

        Quote and DocumentRoot.

        Quote has properties symbol, etc.

        DocumentRoot has properties stockQuote, etc.

        Show
        Yang ZHONG added a comment - Quote and DocumentRoot. Quote has properties symbol, etc. DocumentRoot has properties stockQuote, etc.

          People

          • Assignee:
            Unassigned
            Reporter:
            Andy Grove
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development