Renamed TimingTestUtil to TestOptions
This commit is contained in:
parent
0a72ffeacd
commit
a5a7181615
@ -34,7 +34,7 @@ import org.jboss.netty.bootstrap.ClientBootstrap;
|
|||||||
import org.jboss.netty.channel.ChannelFuture;
|
import org.jboss.netty.channel.ChannelFuture;
|
||||||
import org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory;
|
import org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory;
|
||||||
import org.jboss.netty.util.DummyHandler;
|
import org.jboss.netty.util.DummyHandler;
|
||||||
import org.jboss.netty.util.TimingTestUtil;
|
import org.jboss.netty.util.TestOptions;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ public class NioClientSocketShutdownTimeTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testShutdownTime() throws Throwable {
|
public void testShutdownTime() throws Throwable {
|
||||||
if (!TimingTestUtil.isTimingTestEnabled()) {
|
if (!TestOptions.isTimingTestEnabled()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ import org.jboss.netty.channel.ChannelPipelineCoverage;
|
|||||||
import org.jboss.netty.channel.ChannelStateEvent;
|
import org.jboss.netty.channel.ChannelStateEvent;
|
||||||
import org.jboss.netty.channel.SimpleChannelHandler;
|
import org.jboss.netty.channel.SimpleChannelHandler;
|
||||||
import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory;
|
import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory;
|
||||||
import org.jboss.netty.util.TimingTestUtil;
|
import org.jboss.netty.util.TestOptions;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ public class NioServerSocketShutdownTimeTest {
|
|||||||
|
|
||||||
@Test(timeout = 10000)
|
@Test(timeout = 10000)
|
||||||
public void testSuccessfulBindAttempt() throws Exception {
|
public void testSuccessfulBindAttempt() throws Exception {
|
||||||
if (!TimingTestUtil.isTimingTestEnabled()) {
|
if (!TestOptions.isTimingTestEnabled()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ package org.jboss.netty.util;
|
|||||||
* @author Trustin Lee (tlee@redhat.com)
|
* @author Trustin Lee (tlee@redhat.com)
|
||||||
* @version $Rev$, $Date$
|
* @version $Rev$, $Date$
|
||||||
*/
|
*/
|
||||||
public final class TimingTestUtil {
|
public final class TestOptions {
|
||||||
private static final boolean ENABLED;
|
private static final boolean ENABLED;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
@ -40,7 +40,7 @@ public final class TimingTestUtil {
|
|||||||
return ENABLED;
|
return ENABLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
private TimingTestUtil() {
|
private TestOptions() {
|
||||||
// Unused
|
// Unused
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user