cxf-issues mailing list archives

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

                 Key: CXF-1195
             Project: CXF
          Issue Type: Test
    Affects Versions: 2.1
         Environment: macOSX, java1.5
            Reporter: kombi

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"/>

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 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.

View raw message