Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 59001 invoked from network); 22 Dec 2005 03:48:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Dec 2005 03:48:50 -0000 Received: (qmail 1844 invoked by uid 500); 22 Dec 2005 03:48:46 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 1810 invoked by uid 500); 22 Dec 2005 03:48:46 -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: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 1797 invoked by uid 99); 22 Dec 2005 03:48:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2005 19:48:46 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ssanka@gmail.com designates 66.249.82.204 as permitted sender) Received: from [66.249.82.204] (HELO xproxy.gmail.com) (66.249.82.204) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2005 19:48:45 -0800 Received: by xproxy.gmail.com with SMTP id t15so182410wxc for ; Wed, 21 Dec 2005 19:48:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AIfC47VGnsMagMGNOvtK/Om1b0l5UmoNvGVARVd4mT1K1ScMUr/3fOyVqmwf/supRHJYiNrdg41M7YIAjg8u5mBgoXUk47bI51P4vS3KmGFQW5JA4MNEDsmOiai1kfS/exfNzMGwZP+XZkWhthiroX0dVMAt42kcJp+vCmy9K+A= Received: by 10.70.128.13 with SMTP id a13mr1500421wxd; Wed, 21 Dec 2005 19:48:25 -0800 (PST) Received: by 10.70.109.7 with HTTP; Wed, 21 Dec 2005 19:48:24 -0800 (PST) Message-ID: <1e8c1ed40512211948u5c898a4rb54bddbdaddfdcc8@mail.gmail.com> Date: Wed, 21 Dec 2005 21:48:24 -0600 From: Sanka Samaranayake To: axis-dev@ws.apache.org, dims@apache.org Subject: Re: [Axis2]Test Case for AxisServiceBuilder In-Reply-To: <19e0530f0512210703tdd87b78la55154490b69b68b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43A90E31.1070000@wso2.com> <1e8c1ed40512210257x7e16acbeje5391bce4511c18e@mail.gmail.com> <19e0530f0512210703tdd87b78la55154490b69b68b@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 12/21/05, Davanum Srinivas wrote: > Sanka, Thilini, > > Please remove the automatically generated IDE stuff like "Window - > Preferences - Java - Code Style - Code Templates" I think I removed them before committing to remote codebase :-) !! --Sanka > > thanks, > dims > > On 12/21/05, Sanka Samaranayake wrote: > > -- Applied > > > > Thanks, > > Sanka > > > > On 12/21/05, Thilini wrote: > > > Hi, > > > > > > Attached is the test case written for AxisServiceBuilder.java. Please > > > review and apply the patch > > > > > > Thanks > > > Thilini > > > > > > > > > Index: test-resources/PingService.wsdl > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > --- test-resources/PingService.wsdl (revision 0) > > > +++ test-resources/PingService.wsdl (revision 0) > > > @@ -0,0 +1,60 @@ > > > + > > > + > > > + > > > + > > > + > > + targetNamespace=3D"http://xmlsoap.org/Ping" > > > + xmlns:tns=3D"http://xmlsoap.org/Ping" > > > + xmlns=3D"http://schemas.xmlsoap.org/wsdl/" > > > + xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > > > + xmlns:soap=3D"http://schemas.xmlsoap.org/wsdl/soap/"> > > > + > > > + > > + xmlns=3D"http://www.w3.org/2001/XMLSchema"> > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > +style=3D"document"/> > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > + > > > Index: test/org/apache/axis2/deployment/AxisServiceBuilderTest.java > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > --- test/org/apache/axis2/deployment/AxisServiceBuilderTest.java = (revision 0) > > > +++ test/org/apache/axis2/deployment/AxisServiceBuilderTest.java = (revision 0) > > > @@ -0,0 +1,61 @@ > > > +/* > > > + * Created on Dec 21, 2005 > > > + * > > > + * TODO To change the template for this generated file go to > > > + * Window - Preferences - Java - Code Style - Code Templates > > > + */ > > > +package org.apache.axis2.deployment; > > > + > > > +import java.io.FileInputStream; > > > + > > > +import javax.xml.namespace.QName; > > > + > > > +import org.apache.axis2.description.AxisMessage; > > > +import org.apache.axis2.description.AxisOperation; > > > +import org.apache.axis2.description.AxisService; > > > +import org.apache.wsdl.WSDLConstants; > > > + > > > +import junit.framework.TestCase; > > > + > > > +/** > > > + * @author Thilini > > > + * > > > + * TODO To change the template for this generated type comment go to= Window - > > > + * Preferences - Java - Code Style - Code Templates > > > + */ > > > +public class AxisServiceBuilderTest extends TestCase { > > > + private AxisServiceBuilder builder; > > > + > > > + public AxisServiceBuilderTest(String args) { > > > + super(args); > > > + } > > > + > > > + protected void setUp() throws Exception { > > > + builder =3D new AxisServiceBuilder(); > > > + super.setUp(); > > > + } > > > + > > > + public void testWSDLTOAxisService() throws Exception { > > > + > > > + assertNotNull(builder); > > > + > > > + AxisService service =3D builder.getAxisService(new Fi= leInputStream( > > > + "./test-resources/PingService.wsdl"))= ; > > > + > > > + assertNotNull(service); > > > + assertEquals(service.getName(), "PingService"); > > > + AxisOperation operation =3D service.getOperation(new = QName("Ping")); > > > + assertNotNull(operation); > > > + AxisMessage inMessage =3D operation > > > + .getMessage(WSDLConstants.MESSAGE_LAB= EL_IN_VALUE); > > > + assertNotNull(inMessage); > > > + assertEquals("PingRequest", inMessage.getElementQName= ().getLocalPart()); > > > + AxisMessage outMessage =3D operation > > > + .getMessage(WSDLConstants.MESSAGE_LAB= EL_OUT_VALUE); > > > + assertNotNull(outMessage); > > > + assertEquals("PingResponse", outMessage.getElementQNa= me() > > > + .getLocalPart()); > > > + > > > + } > > > + > > > +} > > > \ No newline at end of file > > > > > > > > > > > > > > -- > Davanum Srinivas : http://wso2.com/blogs/ >