cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kombi (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-1195) cxf-xjv-dv-test: test case added but fails.
Date Fri, 09 Nov 2007 16:49:50 GMT

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

kombi updated CXF-1195:
-----------------------

    Attachment: cxf-xjc-dv-test.patch

patch file created from:

cxf/common/xjc/dv-test/src



> cxf-xjv-dv-test: test case added but fails.
> -------------------------------------------
>
>                 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
>         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.


Mime
View raw message