Return-Path: Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 74002 invoked by uid 500); 5 Mar 2003 15:19:45 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 73957 invoked by uid 500); 5 Mar 2003 15:19:45 -0000 Delivered-To: apmail-xml-axis-cvs@apache.org Date: 5 Mar 2003 15:19:43 -0000 Message-ID: <20030305151943.33938.qmail@icarus.apache.org> From: dims@apache.org To: xml-axis-cvs@apache.org Subject: cvs commit: xml-axis/java/test/utils TestJavaUtils.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N dims 2003/03/05 07:19:43 Modified: java/test/utils TestJavaUtils.java Log: Adding Table 20-2 "Illustrative Examples" from JAXRPC Spec as a sanity check. Revision Changes Path 1.18 +10 -0 xml-axis/java/test/utils/TestJavaUtils.java Index: TestJavaUtils.java =================================================================== RCS file: /home/cvs/xml-axis/java/test/utils/TestJavaUtils.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- TestJavaUtils.java 28 Feb 2003 20:28:57 -0000 1.17 +++ TestJavaUtils.java 5 Mar 2003 15:19:43 -0000 1.18 @@ -34,7 +34,17 @@ */ public void testXmlNameToJava() { + /* Begin TABLE 20-2 Illustrative Examples from JAXRPC Spec */ assertEquals("mixedCaseName", JavaUtils.xmlNameToJava("mixedCaseName")); + + assertEquals("nameWithDashes", JavaUtils.xmlNameToJava("name-with-dashes")); + + assertEquals("name_with_underscore", JavaUtils.xmlNameToJava("name_with_underscore")); + + assertEquals("other_punctChars", JavaUtils.xmlNameToJava("other_punct.chars")); + + assertEquals("answer42", JavaUtils.xmlNameToJava("Answer42")); + /* End TABLE 20-2 Illustrative Examples from JAXRPC Spec */ assertEquals("nameWithDashes", JavaUtils.xmlNameToJava("name-with-dashes"));