You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "kombi (JIRA)" <ji...@apache.org> on 2007/11/09 17:47:50 UTC
[jira] Created: (CXF-1195) cxf-xjv-dv-test: test case added but
fails.
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
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.
[jira] Updated: (CXF-1195) xjc dv plugin doesn't provide default
values for enums
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (CXF-1195) cxf-xjv-dv-test: test case added but
fails.
Posted by "kombi (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (CXF-1195) cxf-xjv-dv-test: test case added but
fails.
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-1195.
------------------------------
Resolution: Fixed
Fix Version/s: 2.1
Assignee: Daniel Kulp
> 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
> 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.