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