Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 38920 invoked from network); 25 Jul 2006 10:37:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jul 2006 10:37:31 -0000 Received: (qmail 59387 invoked by uid 500); 25 Jul 2006 10:37:30 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 59305 invoked by uid 500); 25 Jul 2006 10:37:30 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 59269 invoked by uid 500); 25 Jul 2006 10:37:30 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 59261 invoked by uid 99); 25 Jul 2006 10:37:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2006 03:37:29 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2006 03:37:28 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 69DA91A981A; Tue, 25 Jul 2006 03:37:08 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r425364 - in /webservices/axis2/trunk/java/modules: adb-codegen/src/org/apache/axis2/schema/template/ adb/src/org/apache/axis2/databinding/utils/ adb/test/org/apache/axis2/databinding/ codegen/src/org/apache/axis2/wsdl/codegen/emitter/ raha... Date: Tue, 25 Jul 2006 10:37:06 -0000 To: axis2-cvs@ws.apache.org From: ajith@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060725103708.69DA91A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: ajith Date: Tue Jul 25 03:37:05 2006 New Revision: 425364 URL: http://svn.apache.org/viewvc?rev=425364&view=rev Log: 1.Changed the implementation of the ConverterUtil.java to have methods in correct camel case. I. Now all the converter methods are in proper camel case II. The templates are changed to use the camel cased version of the type name to generate the method signature III. Refactored a few classes that used ConverterUtil.java directly Note - this may break already generated classes. One would need to regenerate the stubs/message receivers to suit the change Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ClientInfo.java webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/CreateAccountRequest.java webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java webservices/axis2/trunk/java/modules/rahas/src/org/apache/rahas/types/RequestSecurityTokenResponseType.java webservices/axis2/trunk/java/modules/rahas/src/org/apache/rahas/types/RequestSecurityTokenType.java webservices/axis2/trunk/java/modules/savan/src/org/apache/savan/eventing/EventingSubscriptionProcessor.java webservices/axis2/trunk/java/modules/savan/src/org/apache/savan/eventing/client/EventingClient.java webservices/axis2/trunk/java/modules/savan/test/org/apache/axis2/savan/EventingExpirationTypesTest.java webservices/axis2/trunk/java/modules/savan/test/org/apache/axis2/savan/EventingSubscripitonProcessorTest.java Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl?rev=425364&r1=425363&r2=425364&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl (original) +++ webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl Tue Jul 25 03:37:05 2006 @@ -281,7 +281,7 @@ if (prefix == null) { prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); } - + xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); @@ -342,27 +342,27 @@ if (==null){ - + java.lang.String namespace = ""; - + if (! namespace.equals("")) { java.lang.String prefix = xmlWriter.getPrefix(namespace); - + if (prefix == null) { prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - + xmlWriter.writeStartElement(prefix,"", namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); - + } else { xmlWriter.writeStartElement(namespace,""); } - + } else { xmlWriter.writeStartElement(""); } - + // write the nil attribute writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","true",xmlWriter); @@ -976,7 +976,8 @@ - + tempAttrib @@ -1024,7 +1025,9 @@ - + + list loopDone @@ -1930,8 +1933,10 @@ - - + + + tempAttrib @@ -1979,7 +1984,9 @@ - + + list loopDone Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java?rev=425364&r1=425363&r2=425364&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java (original) +++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java Tue Jul 25 03:37:05 2006 @@ -238,11 +238,11 @@ */ - public static int convertToint(String s) { + public static int convertToInt(String s) { return Integer.parseInt(s); } - public static double convertTodouble(String s) { + public static double convertToDouble(String s) { if (POSITIVE_INFINITY.equals(s)){ return Double.POSITIVE_INFINITY; }else if (NEGATIVE_INFINITY.equals(s)){ @@ -251,11 +251,11 @@ return Double.parseDouble(s); } - public static BigDecimal convertTodecimal(String s) { + public static BigDecimal convertToDecimal(String s) { return new BigDecimal(s); } - public static float convertTofloat(String s) { + public static float convertToFloat(String s) { if (POSITIVE_INFINITY.equals(s)){ return Float.POSITIVE_INFINITY; }else if (NEGATIVE_INFINITY.equals(s)){ @@ -264,27 +264,27 @@ return Float.parseFloat(s); } - public static String convertTostring(String s) { + public static String convertToString(String s) { return s; } - public static long convertTolong(String s) { + public static long convertToLong(String s) { return Long.parseLong(s); } - public static short convertToshort(String s) { + public static short convertToShort(String s) { return Short.parseShort(s); } - public static boolean convertToboolean(String s) { + public static boolean convertToBoolean(String s) { return Boolean.valueOf(s).booleanValue(); } - public static String convertToanySimpleType(String s) { + public static String convertToAnySimpleType(String s) { return s; } - public static OMElement convertToanyType(String s) { + public static OMElement convertToAnyType(String s) { try { XMLStreamReader r = StAXUtils.createXMLStreamReader( new ByteArrayInputStream(s.getBytes())); @@ -295,38 +295,36 @@ } } - public static YearMonth convertTogYearMonth(String s) { + public static YearMonth convertToGYearMonth(String s) { return new YearMonth(s); } - public static MonthDay convertTogMonthDay(String s) { + public static MonthDay convertToGMonthDay(String s) { return new MonthDay(s); } - public static Year convertTogYear(String s) { + public static Year convertToGYear(String s) { return new Year(s); } - public static Month convertTogMonth(String s) { + public static Month convertToGMonth(String s) { return new Month(s); } - public static Day convertTogDay(String s) { + public static Day convertToGDay(String s) { return new Day(s); } - public static Duration convertToduration(String s) { - return new Duration(s); - } - public static Duration convertToDuration(String s) { return new Duration(s); } - public static HexBinary convertTohexBinary(String s) { + + + public static HexBinary convertToHexBinary(String s) { return new HexBinary(s); } - public static javax.activation.DataHandler convertTobase64Binary(String s) + public static javax.activation.DataHandler convertToBase64Binary(String s) throws Exception{ // reusing the byteArrayDataSource from the Axiom classes ByteArrayDataSource byteArrayDataSource = new ByteArrayDataSource( @@ -342,7 +340,7 @@ * @param source * @return Returns Date. */ - public static Date convertTodate(String source) { + public static Date convertToDate(String source) { Calendar calendar = Calendar.getInstance(); SimpleDateFormat zulu = new SimpleDateFormat("yyyy-MM-dd"); @@ -388,51 +386,49 @@ return result; } - public static Time convertTotime(String s) { + public static Time convertToTime(String s) { return new Time(s); } - public static Token convertTotoken(String s) { - return new Token(s); - } - public static Token convertToToken(String s) { return new Token(s); } - public static NormalizedString convertTonormalizedString(String s) { + + + public static NormalizedString convertToNormalizedString(String s) { return new NormalizedString(s); } - public static UnsignedLong convertTounsignedLong(String s) { + public static UnsignedLong convertToUnsignedLong(String s) { return new UnsignedLong(s); } - public static UnsignedInt convertTounsignedInt(String s) { + public static UnsignedInt convertToUnsignedInt(String s) { return new UnsignedInt(s); } - public static UnsignedShort convertTounsignedShort(String s) { + public static UnsignedShort convertToUnsignedShort(String s) { return new UnsignedShort(s); } - public static UnsignedByte convertTounsignedByte(String s) { + public static UnsignedByte convertToUnsignedByte(String s) { return new UnsignedByte(s); } - public static NonNegativeInteger convertTononNegativeInteger(String s) { + public static NonNegativeInteger convertToNonNegativeInteger(String s) { return new NonNegativeInteger(s); } - public static NegativeInteger convertTonegativeInteger(String s) { + public static NegativeInteger convertToNegativeInteger(String s) { return new NegativeInteger(s); } - public static PositiveInteger convertTopositiveInteger(String s) { + public static PositiveInteger convertToPositiveInteger(String s) { return new PositiveInteger(s); } - public static NonPositiveInteger convertTononPositiveInteger(String s) { + public static NonPositiveInteger convertToNonPositiveInteger(String s) { return new NonPositiveInteger(s); } @@ -448,7 +444,7 @@ return new Id(s); } - public static Language convertTolanguage(String s) { + public static Language convertToLanguage(String s) { return new Language(s); } @@ -481,15 +477,15 @@ return new IDRefs(s); } - public static URI convertToanyURI(String s) throws Exception { + public static URI convertToAnyURI(String s) throws Exception { return new URI(s); } - public static BigInteger convertTointeger(String s) throws Exception { + public static BigInteger convertToInteger(String s) throws Exception { return new BigInteger(s); } - public static byte convertTobyte(String s) throws Exception { + public static byte convertToByte(String s) throws Exception { return Byte.parseByte(s); } @@ -500,7 +496,7 @@ * @return Returns Calendar. * @throws Exception */ - public static Calendar convertTodateTime(String source) throws Exception { + public static Calendar convertToDateTime(String source) throws Exception { Calendar calendar = Calendar.getInstance(); SimpleDateFormat zulu = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); Modified: webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ClientInfo.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ClientInfo.java?rev=425364&r1=425363&r2=425364&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ClientInfo.java (original) +++ webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ClientInfo.java Tue Jul 25 03:37:05 2006 @@ -1,19 +1,19 @@ -/* -* Copyright 2004,2005 The Apache Software Foundation. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - +/* +* Copyright 2004,2005 The Apache Software Foundation. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + /** * ClientInfo.java * @@ -150,7 +150,7 @@ String content = reader.getElementText(); object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertTostring(content)); + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); count++; @@ -161,7 +161,7 @@ String content = reader.getElementText(); object.setSsn( - org.apache.axis2.databinding.utils.ConverterUtil.convertTostring(content)); + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); count++; Modified: webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/CreateAccountRequest.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/CreateAccountRequest.java?rev=425364&r1=425363&r2=425364&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/CreateAccountRequest.java (original) +++ webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/CreateAccountRequest.java Tue Jul 25 03:37:05 2006 @@ -1,19 +1,19 @@ -/* -* Copyright 2004,2005 The Apache Software Foundation. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - +/* +* Copyright 2004,2005 The Apache Software Foundation. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + /** * CreateAccountRequest.java * @@ -146,7 +146,7 @@ String content = reader.getElementText(); object .setPassword(org.apache.axis2.databinding.utils.ConverterUtil - .convertTostring(content)); + .convertToString(content)); count++; } Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java?rev=425364&r1=425363&r2=425364&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java (original) +++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java Tue Jul 25 03:37:05 2006 @@ -65,7 +65,7 @@ import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.Text; -//import com.ibm.wsdl.util.xml.DOM2Writer; +import com.ibm.wsdl.util.xml.DOM2Writer; /* * Copyright 2004,2005 The Apache Software Foundation. @@ -508,7 +508,7 @@ doc.appendChild(rootElement); ////////////////////////////////////////////////////////// - //System.out.println(DOM2Writer.nodeToString(rootElement)); + System.out.println(DOM2Writer.nodeToString(rootElement)); //////////////////////////////////////////////////////////// return doc; } Modified: webservices/axis2/trunk/java/modules/rahas/src/org/apache/rahas/types/RequestSecurityTokenResponseType.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rahas/src/org/apache/rahas/types/RequestSecurityTokenResponseType.java?rev=425364&r1=425363&r2=425364&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/rahas/src/org/apache/rahas/types/RequestSecurityTokenResponseType.java (original) +++ webservices/axis2/trunk/java/modules/rahas/src/org/apache/rahas/types/RequestSecurityTokenResponseType.java Tue Jul 25 03:37:05 2006 @@ -277,7 +277,7 @@ if (tempAttribContext != null) { object .setContext(org.apache.axis2.databinding.utils.ConverterUtil - .convertToanyURI(tempAttribContext)); + .convertToAnyURI(tempAttribContext)); } org.apache.axis2.databinding.utils.SimpleElementReaderStateMachine stateMachine1 = new org.apache.axis2.databinding.utils.SimpleElementReaderStateMachine(); @@ -289,7 +289,7 @@ object.setTokenType( org.apache.axis2.databinding.utils.ConverterUtil - .convertToanyURI(stateMachine1.getText())); + .convertToAnyURI(stateMachine1.getText())); object .setRequestedSecurityToken(org.apache.rahas.types.RequestedSecurityTokenType.Factory Modified: webservices/axis2/trunk/java/modules/rahas/src/org/apache/rahas/types/RequestSecurityTokenType.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rahas/src/org/apache/rahas/types/RequestSecurityTokenType.java?rev=425364&r1=425363&r2=425364&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/rahas/src/org/apache/rahas/types/RequestSecurityTokenType.java (original) +++ webservices/axis2/trunk/java/modules/rahas/src/org/apache/rahas/types/RequestSecurityTokenType.java Tue Jul 25 03:37:05 2006 @@ -275,7 +275,7 @@ if (tempAttribContext != null) { object .setContext(org.apache.axis2.databinding.utils.ConverterUtil - .convertToanyURI(tempAttribContext)); + .convertToAnyURI(tempAttribContext)); } org.apache.axis2.databinding.utils.SimpleElementReaderStateMachine stateMachine1 = new org.apache.axis2.databinding.utils.SimpleElementReaderStateMachine(); @@ -287,7 +287,7 @@ object.setTokenType( org.apache.axis2.databinding.utils.ConverterUtil - .convertToanyURI(stateMachine1.getText())); + .convertToAnyURI(stateMachine1.getText())); // Move to a start element event = reader.getEventType(); @@ -304,7 +304,7 @@ object.setRequestType( org.apache.axis2.databinding.utils.ConverterUtil - .convertToanyURI(stateMachine2.getText())); + .convertToAnyURI(stateMachine2.getText())); // Move to a start element event = reader.getEventType(); Modified: webservices/axis2/trunk/java/modules/savan/src/org/apache/savan/eventing/EventingSubscriptionProcessor.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/savan/src/org/apache/savan/eventing/EventingSubscriptionProcessor.java?rev=425364&r1=425363&r2=425364&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/savan/src/org/apache/savan/eventing/EventingSubscriptionProcessor.java (original) +++ webservices/axis2/trunk/java/modules/savan/src/org/apache/savan/eventing/EventingSubscriptionProcessor.java Tue Jul 25 03:37:05 2006 @@ -266,7 +266,7 @@ } } else { try { - Calendar calendar = ConverterUtil.convertTodateTime(expiresStr); + Calendar calendar = ConverterUtil.convertToDateTime(expiresStr); date = calendar.getTime(); bean.setDateValue(date); } catch (Exception e) { Modified: webservices/axis2/trunk/java/modules/savan/src/org/apache/savan/eventing/client/EventingClient.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/savan/src/org/apache/savan/eventing/client/EventingClient.java?rev=425364&r1=425363&r2=425364&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/savan/src/org/apache/savan/eventing/client/EventingClient.java (original) +++ webservices/axis2/trunk/java/modules/savan/src/org/apache/savan/eventing/client/EventingClient.java Tue Jul 25 03:37:05 2006 @@ -202,7 +202,7 @@ expirationBean.setDurationValue(duration); } else { expirationBean.setDuration(false); - Date date = ConverterUtil.convertTodateTime(text).getTime(); + Date date = ConverterUtil.convertToDateTime(text).getTime(); expirationBean.setDateValue(date); } Modified: webservices/axis2/trunk/java/modules/savan/test/org/apache/axis2/savan/EventingExpirationTypesTest.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/savan/test/org/apache/axis2/savan/EventingExpirationTypesTest.java?rev=425364&r1=425363&r2=425364&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/savan/test/org/apache/axis2/savan/EventingExpirationTypesTest.java (original) +++ webservices/axis2/trunk/java/modules/savan/test/org/apache/axis2/savan/EventingExpirationTypesTest.java Tue Jul 25 03:37:05 2006 @@ -24,7 +24,7 @@ ExpirationBean expirationBean = processor.getExpirationBean(renewMessage); assertTrue(expirationBean.isDuration()); - Duration duration = ConverterUtil.convertToduration("P1Y2M3DT10H30M"); + Duration duration = ConverterUtil.convertToDuration("P1Y2M3DT10H30M"); assertEquals(duration,expirationBean.getDurationValue()); assertEquals (expirationBean.getSubscriberID(),"UUID:DummySubscriberID"); } @@ -35,7 +35,7 @@ ExpirationBean expirationBean = processor.getExpirationBean(renewMessage); assertFalse(expirationBean.isDuration()); - Date date = ConverterUtil.convertTodateTime("2004-06-26T21:07:00.000-08:00").getTime(); + Date date = ConverterUtil.convertToDateTime("2004-06-26T21:07:00.000-08:00").getTime(); assertEquals(expirationBean.getDateValue(),date); assertEquals (expirationBean.getSubscriberID(),"UUID:DummySubscriberID"); } Modified: webservices/axis2/trunk/java/modules/savan/test/org/apache/axis2/savan/EventingSubscripitonProcessorTest.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/savan/test/org/apache/axis2/savan/EventingSubscripitonProcessorTest.java?rev=425364&r1=425363&r2=425364&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/savan/test/org/apache/axis2/savan/EventingSubscripitonProcessorTest.java (original) +++ webservices/axis2/trunk/java/modules/savan/test/org/apache/axis2/savan/EventingSubscripitonProcessorTest.java Tue Jul 25 03:37:05 2006 @@ -63,7 +63,7 @@ assertEquals(eventingSubscriber.getDelivery().getDeliveryEPR().getAddress() ,"http://www.other.example.com/OnStormWarning"); assertEquals(eventingSubscriber.getEndToEPr().getAddress(),"http://www.example.com/MyEventSink"); - Date date = ConverterUtil.convertTodateTime("2004-06-26T21:07:00.000-08:00").getTime(); + Date date = ConverterUtil.convertToDateTime("2004-06-26T21:07:00.000-08:00").getTime(); assertEquals(eventingSubscriber.getSubscriptionEndingTime(),date); } @@ -75,7 +75,7 @@ assertNotNull(expirationBean); assertNotNull(expirationBean.getSubscriberID()); - Date date = ConverterUtil.convertTodateTime("2004-06-26T21:07:00.000-08:00").getTime(); + Date date = ConverterUtil.convertToDateTime("2004-06-26T21:07:00.000-08:00").getTime(); assertEquals(expirationBean.getDateValue(),date); } --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org