Author: ron.sigal(a)jboss.com
Date: 2010-11-13 11:49:27 -0500 (Sat, 13 Nov 2010)
New Revision: 6156
Modified:
remoting3/trunk/jboss-remoting/src/test/java/org/jboss/remoting3/test/RemotingRootTestBase.java
Log:
JBREM-1256: Added Random member and defined XNIO_ID Option.
Modified:
remoting3/trunk/jboss-remoting/src/test/java/org/jboss/remoting3/test/RemotingRootTestBase.java
===================================================================
---
remoting3/trunk/jboss-remoting/src/test/java/org/jboss/remoting3/test/RemotingRootTestBase.java 2010-11-13
16:45:34 UTC (rev 6155)
+++
remoting3/trunk/jboss-remoting/src/test/java/org/jboss/remoting3/test/RemotingRootTestBase.java 2010-11-13
16:49:27 UTC (rev 6156)
@@ -31,6 +31,8 @@
import static org.testng.Assert.assertTrue;
import java.io.IOException;
+import java.util.Date;
+import java.util.Random;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
@@ -48,7 +50,9 @@
import
org.jboss.remoting3.test.ClientServerRemoteConfigurationTestCase.TestRequestListener;
import org.jboss.xnio.AcceptingServer;
import org.jboss.xnio.IoFuture;
+import org.jboss.xnio.Option;
import org.jboss.xnio.OptionMap;
+import org.jboss.xnio.Options;
import org.jboss.xnio.Xnio;
import org.jboss.xnio.IoFuture.Status;
import org.jboss.xnio.log.Logger;
@@ -62,8 +66,12 @@
*/
@SuppressWarnings("unused")
public class RemotingRootTestBase {
+ public static final Option<String> XNIO_ID = Option.simple(Options.class,
"remote.xnio.provider", String.class);
+
private static final Logger log = Logger.getLogger(RemotingRootTestBase.class);
+ protected static Random random = new Random(new Date().getTime());
+
protected String getName() {
final StackTraceElement e = new Throwable().getStackTrace()[1];
return e.getMethodName();