Author: thomas.diesler(a)jboss.com
Date: 2007-02-12 05:43:34 -0500 (Mon, 12 Feb 2007)
New Revision: 2334
Modified:
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/webserviceref/EJB3Client.java
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/webserviceref/ServletClient.java
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpointClientOne.java
Log:
Simplify WebServiceRef setters
Modified:
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/webserviceref/EJB3Client.java
===================================================================
---
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/webserviceref/EJB3Client.java 2007-02-12
08:20:46 UTC (rev 2333)
+++
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/webserviceref/EJB3Client.java 2007-02-12
10:43:34 UTC (rev 2334)
@@ -60,7 +60,7 @@
// Test on method with value
@WebServiceRef(name = "TestEndpointService5")
- public void setServiceSetter5(TestEndpointService service)
+ public void setService5(TestEndpointService service)
{
this.service5 = service;
}
@@ -68,7 +68,7 @@
// Test on method without name
@WebServiceRef
- public void setServiceSetter6(TestEndpointService service)
+ public void setService6(TestEndpointService service)
{
this.service6 = service;
}
@@ -99,7 +99,7 @@
ports.add((TestEndpoint)service5.getPort(TestEndpoint.class));
ports.add(((TestEndpointService)iniCtx.lookup("java:comp.ejb3/env/TestEndpointService5")).getTestEndpointPort());
ports.add((TestEndpoint)service6.getPort(TestEndpoint.class));
- ports.add(((TestEndpointService)iniCtx.lookup("java:comp.ejb3/env/" +
getClass().getName() + "/serviceSetter6")).getTestEndpointPort());
+ ports.add(((TestEndpointService)iniCtx.lookup("java:comp.ejb3/env/" +
getClass().getName() + "/Service6")).getTestEndpointPort());
ports.add((TestEndpoint)iniCtx.lookup("java:comp.ejb3/env/port1"));
ports.add(port2);
ports.add((TestEndpoint)iniCtx.lookup("java:comp.ejb3/env/Port2"));
Modified:
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/webserviceref/ServletClient.java
===================================================================
---
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/webserviceref/ServletClient.java 2007-02-12
08:20:46 UTC (rev 2333)
+++
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/webserviceref/ServletClient.java 2007-02-12
10:43:34 UTC (rev 2334)
@@ -57,7 +57,7 @@
// Test on method with value
@WebServiceRef(name = "TestEndpointService5")
- public void setServiceSetter5(TestEndpointService service)
+ public void setService5(TestEndpointService service)
{
this.service5 = service;
}
@@ -65,7 +65,7 @@
// Test on method without name
@WebServiceRef
- public void setServiceSetter6(TestEndpointService service)
+ public void setService6(TestEndpointService service)
{
this.service6 = service;
}
@@ -98,7 +98,7 @@
ports.add((TestEndpoint)service5.getPort(TestEndpoint.class));
ports.add(((TestEndpointService)iniCtx.lookup("java:comp/env/TestEndpointService5")).getTestEndpointPort());
ports.add((TestEndpoint)service6.getPort(TestEndpoint.class));
- ports.add(((TestEndpointService)iniCtx.lookup("java:comp/env/" +
getClass().getName() + "/serviceSetter6")).getTestEndpointPort());
+ ports.add(((TestEndpointService)iniCtx.lookup("java:comp/env/" +
getClass().getName() + "/Service6")).getTestEndpointPort());
ports.add((TestEndpoint)iniCtx.lookup("java:comp/env/port1"));
ports.add(port2);
ports.add((TestEndpoint)iniCtx.lookup("java:comp/env/Port2"));
Modified:
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpointClientOne.java
===================================================================
---
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpointClientOne.java 2007-02-12
08:20:46 UTC (rev 2333)
+++
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpointClientOne.java 2007-02-12
10:43:34 UTC (rev 2334)
@@ -52,7 +52,7 @@
// Test on method with name
@WebServiceRef(name = "TestEndpointService5")
- static void setServiceSetter5(TestEndpointService service)
+ static void setService5(TestEndpointService service)
{
TestEndpointClientOne.service5 = service;
}
@@ -60,7 +60,7 @@
// Test on method without name
@WebServiceRef
- static void setServiceSetter6(TestEndpointService service)
+ static void setService6(TestEndpointService service)
{
TestEndpointClientOne.service6 = service;
}
@@ -102,7 +102,7 @@
ports.add((TestEndpoint)service5.getPort(TestEndpoint.class));
ports.add(((TestEndpointService)iniCtx.lookup("java:comp/env/TestEndpointService5")).getTestEndpointPort());
ports.add((TestEndpoint)service6.getPort(TestEndpoint.class));
- ports.add(((TestEndpointService)iniCtx.lookup("java:comp/env/" +
TestEndpointClientOne.class.getName() +
"/serviceSetter6")).getTestEndpointPort());
+ ports.add(((TestEndpointService)iniCtx.lookup("java:comp/env/" +
TestEndpointClientOne.class.getName() + "/Service6")).getTestEndpointPort());
ports.add((TestEndpoint)iniCtx.lookup("java:comp/env/port1"));
ports.add(port2);
ports.add((TestEndpoint)iniCtx.lookup("java:comp/env/Port2"));