Author: alessio.soldano(a)jboss.com
Date: 2009-03-24 07:25:39 -0400 (Tue, 24 Mar 2009)
New Revision: 9672
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1283/JBWS1283TestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733Impl.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2000/JBWS2000TestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2241/JBWS2241TestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2278/JBWS2278TestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextJSETestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/webfault/WebFaultTestCase.java
Log:
[JBWS-2555] Misc minor fixes
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1283/JBWS1283TestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1283/JBWS1283TestCase.java 2009-03-24
10:59:18 UTC (rev 9671)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1283/JBWS1283TestCase.java 2009-03-24
11:25:39 UTC (rev 9672)
@@ -78,7 +78,7 @@
}
// handler that verifies the attachment that have been added on the server-side
- class VerifyAttachmentHandler extends GenericSOAPHandler
+ static class VerifyAttachmentHandler extends GenericSOAPHandler
{
protected boolean handleInbound(MessageContext msgContext)
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733Impl.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733Impl.java 2009-03-24
10:59:18 UTC (rev 9671)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733Impl.java 2009-03-24
11:25:39 UTC (rev 9672)
@@ -48,10 +48,10 @@
Integer counter = (Integer)session.getAttribute("counter");
if (counter == null)
{
- counter = new Integer(0);
+ counter = Integer.valueOf(0);
System.out.println("Starting the Session");
}
- counter = new Integer(counter.intValue() + 1);
+ counter = Integer.valueOf(counter.intValue() + 1);
session.setAttribute("counter", counter);
return counter;
}
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2000/JBWS2000TestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2000/JBWS2000TestCase.java 2009-03-24
10:59:18 UTC (rev 9671)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2000/JBWS2000TestCase.java 2009-03-24
11:25:39 UTC (rev 9672)
@@ -40,9 +40,8 @@
*/
public class JBWS2000TestCase extends JBossWSTest
{
+ private FileTransferService port;
- private static FileTransferService port;
-
public static Test suite()
{
return new JBossWSTestSetup(JBWS2000TestCase.class,
"jaxws-jbws2000.jar");
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2241/JBWS2241TestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2241/JBWS2241TestCase.java 2009-03-24
10:59:18 UTC (rev 9671)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2241/JBWS2241TestCase.java 2009-03-24
11:25:39 UTC (rev 9672)
@@ -41,7 +41,7 @@
*/
public class JBWS2241TestCase extends JBossWSTest
{
- private static EndpointInterface port;
+ private EndpointInterface port;
public static Test suite()
{
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2278/JBWS2278TestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2278/JBWS2278TestCase.java 2009-03-24
10:59:18 UTC (rev 9671)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2278/JBWS2278TestCase.java 2009-03-24
11:25:39 UTC (rev 9672)
@@ -45,10 +45,9 @@
*/
public class JBWS2278TestCase extends JBossWSTest
{
+ private TestEndpoint port11;
+ private TestEndpoint port12;
- private static TestEndpoint port11;
- private static TestEndpoint port12;
-
public static Test suite() throws Exception
{
return new JBossWSTestSetup(JBWS2278TestCase.class,
"jaxws-jbws2278.war");
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java 2009-03-24
10:59:18 UTC (rev 9671)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java 2009-03-24
11:25:39 UTC (rev 9672)
@@ -42,7 +42,7 @@
public synchronized void push(long t)
{
- timings.push(new Long(t));
+ timings.push(Long.valueOf(t));
}
public synchronized long pop()
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.java 2009-03-24
10:59:18 UTC (rev 9671)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.java 2009-03-24
11:25:39 UTC (rev 9672)
@@ -41,7 +41,7 @@
*/
public class WebServiceContextEJBTestCase extends JBossWSTest
{
- private static Endpoint port;
+ private Endpoint port;
public static Test suite()
{
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextJSETestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextJSETestCase.java 2009-03-24
10:59:18 UTC (rev 9671)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextJSETestCase.java 2009-03-24
11:25:39 UTC (rev 9672)
@@ -21,7 +21,6 @@
*/
package org.jboss.test.ws.jaxws.samples.context;
-import java.io.File;
import java.net.URL;
import javax.xml.namespace.QName;
@@ -41,7 +40,7 @@
*/
public class WebServiceContextJSETestCase extends JBossWSTest
{
- private static Endpoint port;
+ private Endpoint port;
public static Test suite()
{
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/webfault/WebFaultTestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/webfault/WebFaultTestCase.java 2009-03-24
10:59:18 UTC (rev 9671)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/webfault/WebFaultTestCase.java 2009-03-24
11:25:39 UTC (rev 9672)
@@ -150,7 +150,7 @@
}
catch (CustomException e)
{
- assertEquals(new Integer(5), e.getNumber());
+ assertEquals(Integer.valueOf(5), e.getNumber());
assertNull(e.getTransientString());
}
catch (Exception e)
@@ -164,7 +164,7 @@
}
catch (SimpleException e)
{
- assertEquals(new Integer(5), e.getNumber());
+ assertEquals(Integer.valueOf(5), e.getNumber());
}
catch (Exception e)
{
Show replies by date