Renamed TimingTestUtil to TestOptions

This commit is contained in:
Trustin Lee 2009-03-09 19:04:35 +00:00
parent 0a72ffeacd
commit a5a7181615
3 changed files with 6 additions and 6 deletions

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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
} }
} }