You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2007/11/09 20:05:51 UTC

[jira] Updated: (CXF-1195) xjc dv plugin doesn't provide default values for enums

     [ https://issues.apache.org/jira/browse/CXF-1195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp updated CXF-1195:
-----------------------------

    Summary: xjc dv plugin doesn't provide default values for enums  (was: cxf-xjv-dv-test: test case added but fails.)

> xjc dv plugin doesn't provide default values for enums
> ------------------------------------------------------
>
>                 Key: CXF-1195
>                 URL: https://issues.apache.org/jira/browse/CXF-1195
>             Project: CXF
>          Issue Type: Test
>    Affects Versions: 2.1
>         Environment: macOSX, java1.5
>            Reporter: kombi
>            Assignee: Daniel Kulp
>             Fix For: 2.1
>
>         Attachments: cxf-xjc-dv-test.patch
>
>
> I created a test case for elements that are defaulted and use a simpleType is:
> <xs:simpleType name="drivingDecision">
>     	<xs:restriction base="xs:string">
>     		<xs:enumeration value="RightTurn"/>
>     		<xs:enumeration value="LeftTurn"/>
>     		<xs:enumeration value="U-Turn"/>
>     	</xs:restriction>
>  </xs:simpleType>
> with a line added in complexType "foo":
> <xs:element name="driving" type="tns:drivingDecision" default="LeftTurn" minOccurs="0"></xs:element>
> And a test added in DefaultValueTest.java under method: assertDefaultElementValues( Foo foo ):
> assertEquals("Unexpected value for element driving", "LeftTurn", foo.getDriving());

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.