Author: alessio.soldano(a)jboss.com
Date: 2010-03-04 09:30:50 -0500 (Thu, 04 Mar 2010)
New Revision: 11714
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2934/AbstractTestCase.java
Log:
Removing System.out
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2934/AbstractTestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2934/AbstractTestCase.java 2010-03-03
11:45:47 UTC (rev 11713)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2934/AbstractTestCase.java 2010-03-04
14:30:50 UTC (rev 11714)
@@ -27,6 +27,7 @@
import javax.xml.ws.BindingProvider;
import javax.xml.ws.Service;
+import org.jboss.logging.Logger;
import org.jboss.wsf.test.JBossWSTest;
/**
@@ -42,6 +43,7 @@
private final Endpoint[] proxies = new Endpoint[THREADS_COUNT];
private final Thread[] threads = new Thread[THREADS_COUNT];
private final TestJob[] jobs = new TestJob[THREADS_COUNT];
+ private final Logger log = Logger.getLogger(this.getClass());
@Override
protected void setUp() throws Exception
@@ -60,19 +62,19 @@
{
for (int i = 0; i < THREADS_COUNT; i++)
{
- System.out.println("Creating thread " + (i + 1));
+ log.debug("Creating thread " + (i + 1));
jobs[i] = new TestJob(proxies[i], REQUESTS_COUNT, "TestJob" + i);
threads[i] = new Thread(jobs[i]);
}
for (int i = 0; i < THREADS_COUNT; i++)
{
- System.out.println("Starting thread " + (i + 1));
+ log.debug("Starting thread " + (i + 1));
threads[i].start();
}
Exception e = null;
for (int i = 0; i < THREADS_COUNT; i++)
{
- System.out.println("Joining thread " + (i + 1));
+ log.debug("Joining thread " + (i + 1));
threads[i].join();
if (e == null)
e = jobs[i].getException();
@@ -86,6 +88,7 @@
private final Endpoint proxy;
private final int countOfRequests;
private Exception exception;
+ private static final Logger log = Logger.getLogger(TestJob.class);
TestJob(Endpoint proxy, int countOfRequests, String jobName)
{
@@ -102,14 +105,14 @@
{
this.setQueryParameter(proxy, i);
int retVal = proxy.getQueryParameter(jobName);
- System.out.println("Thread=" + this.jobName + ",
iteration=" + i);
+ log.debug("Thread=" + this.jobName + ", iteration=" +
i);
if (retVal != (i + 1))
throw new RuntimeException("Thread=" + this.jobName + ",
iteration=" + i + ", received=" + retVal);
}
}
catch (Exception e)
{
- System.out.println("Exception caught: " + e.getMessage());
+ log.error("Exception caught: " + e.getMessage());
this.exception = e;
}
}
Show replies by date