users@glassfish.java.net

Re: Hi, Thanks for the

From: Bhavanishankar <bshankar_at_sun.com>
Date: Thu, 11 Nov 2010 21:52:19 +0530

I am not sure what you referring to. In my workspace
v3/tests/embedded/maven-plugin/webservice, this is what it is:

$ find . -name "*.java"

./src/test/java/org/glassfish/tests/standalonewar/WebTest.java
./src/main/java/test/SimpleWebService.java

$ find . -name "pom.xml"

./pom.xml

$ mvn install

<output>
....
INFO: webservice was successfully deployed in 16,701 milliseconds.
PlainTextActionReporterSUCCESS
Description: deploy AdminCommand
Application deployed with name webservice.
     [name=webservice]
Nov 11, 2010 9:48:14 PM PluginUtil doDeploy
INFO: Deployed webservice
[INFO] [surefire:test {execution: default}]
[INFO] Surefire report directory:
/export/bhavani/ws/glassfish/v3/tests/embedded/maven-plugin/webservice/target/surefire-reports

-------------------------------------------------------
  T E S T S
-------------------------------------------------------
Running org.glassfish.tests.ejbwar.WebTest
<?xml version='1.0' encoding='UTF-8'?><!-- Published by JAX-WS RI at
http://jax-ws.dev.java.net. RI's version is JAX-WS
RI 2.2.2-10/25/2010 12:10 AM(ramapulavarthi)-. --><!-- Generated by
JAX-WS RI at http://jax-ws.dev.java.net. RI's
version is JAX-WS RI 2.2.2-10/25/2010 12:10 AM(ramapulavarthi)-.
--><definitions
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:wsp="http://www.w3.org/ns/ws-policy"
xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://test/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://test/" name="SimpleWebServiceService">
<types>
<xsd:schema>
<xsd:import namespace="http://test/"
schemaLocation="http://localhost:8080/webservice/SimpleWebServiceService?xsd=1"
/>
</xsd:schema>
</types>
<message name="add">
<part name="parameters" element="tns:add" />
</message>
<message name="addResponse">
<part name="parameters" element="tns:addResponse" />
</message>
<message name="Exception">
<part name="fault" element="tns:Exception" />
</message>
<message name="sayHi">
<part name="parameters" element="tns:sayHi" />
</message>
<message name="sayHiResponse">
<part name="parameters" element="tns:sayHiResponse" />
</message>
<portType name="SimpleWebService">
<operation name="add">
<input wsam:Action="http://test/SimpleWebService/addRequest"
message="tns:add" />
<output wsam:Action="http://test/SimpleWebService/addResponse"
message="tns:addResponse" />
<fault message="tns:Exception" name="Exception"
wsam:Action="http://test/SimpleWebService/add/Fault/Exception" />
</operation>
<operation name="sayHi">
<input wsam:Action="http://test/SimpleWebService/sayHiRequest"
message="tns:sayHi" />
<output wsam:Action="http://test/SimpleWebService/sayHiResponse"
message="tns:sayHiResponse" />
<fault message="tns:Exception" name="Exception"
wsam:Action="http://test/SimpleWebService/sayHi/Fault/Exception" />
</operation>
</portType>
<binding name="SimpleWebServicePortBinding" type="tns:SimpleWebService">
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.305 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

</output>

The test just accesses the ?wsdl to ensure the deployment of the web
service was fine.

Thanks,
Bhavani.

On 11/11/2010 09:43 PM, forums_at_java.net wrote:
> Hi,
>
> Thanks for the update.
>
> There are no junit tests, all you have in the project is one pom file,
> a web
> xml file and one webservice which is in the test folder that has two
> methods
> and that's it? No tests run when the service is deployed as there is
> no test?
>
> Regards
>
> Amjad
>
>
> --
>
> [Message sent by forum member 'mzkq6z']
>
> View Post: http://forums.java.net/node/715091
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>