Author: heiko.braun(a)jboss.com
Date: 2007-01-26 06:12:01 -0500 (Fri, 26 Jan 2007)
New Revision: 2135
Modified:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventingSupport.java
Log:
Keep ports as static members
Modified:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventingSupport.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventingSupport.java 2007-01-26
11:06:40 UTC (rev 2134)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventingSupport.java 2007-01-26
11:12:01 UTC (rev 2135)
@@ -52,17 +52,17 @@
public class EventingSupport extends JBossWSTest
{
- EventSourceEndpoint eventSourcePort;
+ static EventSourceEndpoint eventSourcePort;
- SubscriptionManagerEndpoint managerPort;
+ static SubscriptionManagerEndpoint managerPort;
- protected URI eventSourceURI = null;
+ static URI eventSourceURI = null;
private static int msgId = 0;
- URL wsdlLocation;
+ static URL wsdlLocation;
- protected String eventString =
+ static String eventString =
"<WindReport type='critical'>\n" +
" <Date>030701</Date>\n" +
" <Time>0041</Time>\n" +
@@ -85,20 +85,17 @@
protected void setUp() throws Exception
{
- super.setUp();
-
- eventSourceURI = new URI(EVENT_SOURCE_NAME);
- wsdlLocation = new URL("http://" + getServerHost() +
":8080/jaxws-wseventing/subscribe?wsdl");
-
if (eventSourcePort == null)
{
+ eventSourceURI = new URI(EVENT_SOURCE_NAME);
+ wsdlLocation = new URL("http://" + getServerHost() +
":8080/jaxws-wseventing/subscribe?wsdl");
+
Service service = Service.create(wsdlLocation, new
QName("","EventingService"));
eventSourcePort =
(EventSourceEndpoint)service.getPort(EventSourceEndpoint.class);
managerPort =
(SubscriptionManagerEndpoint)service.getPort(SubscriptionManagerEndpoint.class);
((StubExt)eventSourcePort).setConfigName("Standard WSAddressing
Client");
((StubExt)managerPort).setConfigName("Standard WSAddressing Client");
-
}
}
Show replies by date