diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/AbstractSocketCompatibleObjectStreamEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/AbstractSocketCompatibleObjectStreamEchoTest.java deleted file mode 100644 index c202f4399c..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/AbstractSocketCompatibleObjectStreamEchoTest.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket; - -import static org.junit.Assert.*; - -import java.io.IOException; -import java.net.InetSocketAddress; -import java.util.Random; -import java.util.concurrent.Executor; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.atomic.AtomicReference; - -import io.netty.bootstrap.ClientBootstrap; -import io.netty.bootstrap.ServerBootstrap; -import io.netty.channel.Channel; -import io.netty.channel.ChannelFactory; -import io.netty.channel.ChannelFuture; -import io.netty.channel.ChannelHandlerContext; -import io.netty.channel.ChannelStateEvent; -import io.netty.channel.ExceptionEvent; -import io.netty.channel.MessageEvent; -import io.netty.channel.SimpleChannelUpstreamHandler; -import io.netty.handler.codec.serialization.CompatibleObjectDecoder; -import io.netty.handler.codec.serialization.CompatibleObjectEncoder; -import io.netty.util.SocketAddresses; -import io.netty.util.internal.ExecutorUtil; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public abstract class AbstractSocketCompatibleObjectStreamEchoTest { - - static final Random random = new Random(); - static final String[] data = new String[1024]; - - private static ExecutorService executor; - - static { - for (int i = 0; i < data.length; i ++) { - int eLen = random.nextInt(512); - char[] e = new char[eLen]; - for (int j = 0; j < eLen; j ++) { - e[j] = (char) ('a' + random.nextInt(26)); - } - - data[i] = new String(e); - } - } - - @BeforeClass - public static void init() { - executor = Executors.newCachedThreadPool(); - } - - @AfterClass - public static void destroy() { - ExecutorUtil.terminate(executor); - } - - protected abstract ChannelFactory newServerSocketChannelFactory(Executor executor); - protected abstract ChannelFactory newClientSocketChannelFactory(Executor executor); - - @Test - @SuppressWarnings("deprecation") - public void testCompatibleObjectEcho() throws Throwable { - ServerBootstrap sb = new ServerBootstrap(newServerSocketChannelFactory(executor)); - ClientBootstrap cb = new ClientBootstrap(newClientSocketChannelFactory(executor)); - - EchoHandler sh = new EchoHandler(); - EchoHandler ch = new EchoHandler(); - - sb.pipeline().addLast("decoder", new CompatibleObjectDecoder()); - sb.pipeline().addLast("encoder", new CompatibleObjectEncoder()); - sb.pipeline().addLast("handler", sh); - - cb.pipeline().addLast("decoder", new CompatibleObjectDecoder()); - cb.pipeline().addLast("encoder", new CompatibleObjectEncoder()); - cb.pipeline().addLast("handler", ch); - - Channel sc = sb.bind(new InetSocketAddress(0)); - int port = ((InetSocketAddress) sc.getLocalAddress()).getPort(); - - ChannelFuture ccf = cb.connect(new InetSocketAddress(SocketAddresses.LOCALHOST, port)); - assertTrue(ccf.awaitUninterruptibly().isSuccess()); - - Channel cc = ccf.channel(); - for (String element : data) { - cc.write(element); - } - - while (ch.counter < data.length) { - if (sh.exception.get() != null) { - break; - } - if (ch.exception.get() != null) { - break; - } - - try { - Thread.sleep(1); - } catch (InterruptedException e) { - // Ignore. - } - } - - while (sh.counter < data.length) { - if (sh.exception.get() != null) { - break; - } - if (ch.exception.get() != null) { - break; - } - - try { - Thread.sleep(1); - } catch (InterruptedException e) { - // Ignore. - } - } - - sh.channel.close().awaitUninterruptibly(); - ch.channel.close().awaitUninterruptibly(); - sc.close().awaitUninterruptibly(); - - if (sh.exception.get() != null && !(sh.exception.get() instanceof IOException)) { - throw sh.exception.get(); - } - if (ch.exception.get() != null && !(ch.exception.get() instanceof IOException)) { - throw ch.exception.get(); - } - if (sh.exception.get() != null) { - throw sh.exception.get(); - } - if (ch.exception.get() != null) { - throw ch.exception.get(); - } - } - - private static class EchoHandler extends SimpleChannelUpstreamHandler { - volatile Channel channel; - final AtomicReference exception = new AtomicReference(); - volatile int counter; - - EchoHandler() { - } - - @Override - public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) - throws Exception { - channel = e.channel(); - } - - @Override - public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) - throws Exception { - - String m = (String) e.getMessage(); - assertEquals(data[counter], m); - - if (channel.getParent() != null) { - channel.write(m); - } - - counter ++; - } - - @Override - public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) - throws Exception { - if (exception.compareAndSet(null, e.cause())) { - e.channel().close(); - } - } - } -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketCompatibleObjectStreamEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketCompatibleObjectStreamEchoTest.java deleted file mode 100644 index e09e3ce613..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketCompatibleObjectStreamEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.nio.nio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioClientSocketChannelFactory; -import io.netty.channel.socket.nio.NioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketCompatibleObjectStreamEchoTest; - -public class NioNioSocketCompatibleObjectStreamEchoTest extends AbstractSocketCompatibleObjectStreamEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new NioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new NioServerSocketChannelFactory(executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketEchoTest.java deleted file mode 100644 index d64af1866e..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.nio.nio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioClientSocketChannelFactory; -import io.netty.channel.socket.nio.NioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketEchoTest; - -public class NioNioSocketEchoTest extends AbstractSocketEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new NioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new NioServerSocketChannelFactory(executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketFixedLengthEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketFixedLengthEchoTest.java deleted file mode 100644 index 2313edcd50..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketFixedLengthEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.nio.nio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioClientSocketChannelFactory; -import io.netty.channel.socket.nio.NioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketFixedLengthEchoTest; - -public class NioNioSocketFixedLengthEchoTest extends AbstractSocketFixedLengthEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new NioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new NioServerSocketChannelFactory(executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketObjectStreamEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketObjectStreamEchoTest.java deleted file mode 100644 index 514c8dc99d..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketObjectStreamEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.nio.nio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioClientSocketChannelFactory; -import io.netty.channel.socket.nio.NioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketObjectStreamEchoTest; - -public class NioNioSocketObjectStreamEchoTest extends AbstractSocketObjectStreamEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new NioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new NioServerSocketChannelFactory(executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketSslEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketSslEchoTest.java deleted file mode 100644 index 43dfc39872..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketSslEchoTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.nio.nio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioClientSocketChannelFactory; -import io.netty.channel.socket.nio.NioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketSslEchoTest; - -public class NioNioSocketSslEchoTest extends AbstractSocketSslEchoTest { - - - @Override - public void testSslEcho() throws Throwable { - // - } - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new NioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new NioServerSocketChannelFactory(executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketStringEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketStringEchoTest.java deleted file mode 100644 index 3b777ba076..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/nio/NioNioSocketStringEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.nio.nio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioClientSocketChannelFactory; -import io.netty.channel.socket.nio.NioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketStringEchoTest; - -public class NioNioSocketStringEchoTest extends AbstractSocketStringEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new NioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new NioServerSocketChannelFactory(executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketCompatibleObjectStreamEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketCompatibleObjectStreamEchoTest.java deleted file mode 100644 index c3a01cad6c..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketCompatibleObjectStreamEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.nio.oio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioClientSocketChannelFactory; -import io.netty.channel.socket.oio.OioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketCompatibleObjectStreamEchoTest; - -public class NioOioSocketCompatibleObjectStreamEchoTest extends AbstractSocketCompatibleObjectStreamEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new NioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new OioServerSocketChannelFactory(executor, executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketEchoTest.java deleted file mode 100644 index 0ee9a9490b..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.nio.oio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioClientSocketChannelFactory; -import io.netty.channel.socket.oio.OioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketEchoTest; - -public class NioOioSocketEchoTest extends AbstractSocketEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new NioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new OioServerSocketChannelFactory(executor, executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketFixedLengthEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketFixedLengthEchoTest.java deleted file mode 100644 index e2bf93ec36..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketFixedLengthEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.nio.oio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioClientSocketChannelFactory; -import io.netty.channel.socket.oio.OioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketFixedLengthEchoTest; - -public class NioOioSocketFixedLengthEchoTest extends AbstractSocketFixedLengthEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new NioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new OioServerSocketChannelFactory(executor, executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketObjectStreamEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketObjectStreamEchoTest.java deleted file mode 100644 index 21a71b3fb2..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketObjectStreamEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.nio.oio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioClientSocketChannelFactory; -import io.netty.channel.socket.oio.OioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketObjectStreamEchoTest; - -public class NioOioSocketObjectStreamEchoTest extends AbstractSocketObjectStreamEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new NioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new OioServerSocketChannelFactory(executor, executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketSslEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketSslEchoTest.java deleted file mode 100644 index 7e7301f733..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketSslEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.nio.oio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioClientSocketChannelFactory; -import io.netty.channel.socket.oio.OioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketSslEchoTest; - -public class NioOioSocketSslEchoTest extends AbstractSocketSslEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new NioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new OioServerSocketChannelFactory(executor, executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketStringEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketStringEchoTest.java deleted file mode 100644 index 832902ff0c..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/nio/oio/NioOioSocketStringEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.nio.oio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioClientSocketChannelFactory; -import io.netty.channel.socket.oio.OioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketStringEchoTest; - -public class NioOioSocketStringEchoTest extends AbstractSocketStringEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new NioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new OioServerSocketChannelFactory(executor, executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketCompatibleObjectStreamEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketCompatibleObjectStreamEchoTest.java deleted file mode 100644 index 7c0953fcd5..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketCompatibleObjectStreamEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.oio.nio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioServerSocketChannelFactory; -import io.netty.channel.socket.oio.OioClientSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketCompatibleObjectStreamEchoTest; - -public class OioNioSocketCompatibleObjectStreamEchoTest extends AbstractSocketCompatibleObjectStreamEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new OioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new NioServerSocketChannelFactory(executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketEchoTest.java deleted file mode 100644 index 604c02c16c..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.oio.nio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioServerSocketChannelFactory; -import io.netty.channel.socket.oio.OioClientSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketEchoTest; - -public class OioNioSocketEchoTest extends AbstractSocketEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new OioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new NioServerSocketChannelFactory(executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketFixedLengthEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketFixedLengthEchoTest.java deleted file mode 100644 index 94674e3f79..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketFixedLengthEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.oio.nio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioServerSocketChannelFactory; -import io.netty.channel.socket.oio.OioClientSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketFixedLengthEchoTest; - -public class OioNioSocketFixedLengthEchoTest extends AbstractSocketFixedLengthEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new OioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new NioServerSocketChannelFactory(executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketObjectStreamEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketObjectStreamEchoTest.java deleted file mode 100644 index 685ef4814a..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketObjectStreamEchoTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.oio.nio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioServerSocketChannelFactory; -import io.netty.channel.socket.oio.OioClientSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketObjectStreamEchoTest; - -/** - */ -public class OioNioSocketObjectStreamEchoTest extends AbstractSocketObjectStreamEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new OioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new NioServerSocketChannelFactory(executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketSslEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketSslEchoTest.java deleted file mode 100644 index 8567a254e2..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketSslEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.oio.nio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioServerSocketChannelFactory; -import io.netty.channel.socket.oio.OioClientSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketSslEchoTest; - -public class OioNioSocketSslEchoTest extends AbstractSocketSslEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new OioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new NioServerSocketChannelFactory(executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketStringEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketStringEchoTest.java deleted file mode 100644 index 805c666374..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/nio/OioNioSocketStringEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.oio.nio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.nio.NioServerSocketChannelFactory; -import io.netty.channel.socket.oio.OioClientSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketStringEchoTest; - -public class OioNioSocketStringEchoTest extends AbstractSocketStringEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new OioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new NioServerSocketChannelFactory(executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketCompatibleObjectStreamEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketCompatibleObjectStreamEchoTest.java deleted file mode 100644 index 9b68265223..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketCompatibleObjectStreamEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.oio.oio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.oio.OioClientSocketChannelFactory; -import io.netty.channel.socket.oio.OioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketCompatibleObjectStreamEchoTest; - -public class OioOioSocketCompatibleObjectStreamEchoTest extends AbstractSocketCompatibleObjectStreamEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new OioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new OioServerSocketChannelFactory(executor, executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketEchoTest.java deleted file mode 100644 index 32cc3550e4..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.oio.oio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.oio.OioClientSocketChannelFactory; -import io.netty.channel.socket.oio.OioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketEchoTest; - -public class OioOioSocketEchoTest extends AbstractSocketEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new OioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new OioServerSocketChannelFactory(executor, executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketFixedLengthEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketFixedLengthEchoTest.java deleted file mode 100644 index bb82548ab7..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketFixedLengthEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.oio.oio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.oio.OioClientSocketChannelFactory; -import io.netty.channel.socket.oio.OioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketFixedLengthEchoTest; - -public class OioOioSocketFixedLengthEchoTest extends AbstractSocketFixedLengthEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new OioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new OioServerSocketChannelFactory(executor, executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketObjectStreamEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketObjectStreamEchoTest.java deleted file mode 100644 index aef8d530bb..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketObjectStreamEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.oio.oio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.oio.OioClientSocketChannelFactory; -import io.netty.channel.socket.oio.OioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketObjectStreamEchoTest; - -public class OioOioSocketObjectStreamEchoTest extends AbstractSocketObjectStreamEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new OioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new OioServerSocketChannelFactory(executor, executor); - } - -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketSslEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketSslEchoTest.java deleted file mode 100644 index 087352f0f0..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketSslEchoTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.oio.oio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.oio.OioClientSocketChannelFactory; -import io.netty.channel.socket.oio.OioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketSslEchoTest; - -public class OioOioSocketSslEchoTest extends AbstractSocketSslEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new OioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new OioServerSocketChannelFactory(executor, executor); - } - - @Override - protected boolean isExecutorRequired() { - return true; - } -} diff --git a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketStringEchoTest.java b/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketStringEchoTest.java deleted file mode 100644 index 9e3a8b4894..0000000000 --- a/testsuite/src/test/java/io/netty/testsuite/transport/socket/oio/oio/OioOioSocketStringEchoTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2011 The Netty Project - * - * The Netty Project licenses this file to you under the Apache License, - * version 2.0 (the "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ -package io.netty.testsuite.transport.socket.oio.oio; - -import java.util.concurrent.Executor; - -import io.netty.channel.ChannelFactory; -import io.netty.channel.socket.oio.OioClientSocketChannelFactory; -import io.netty.channel.socket.oio.OioServerSocketChannelFactory; -import io.netty.testsuite.transport.socket.AbstractSocketStringEchoTest; - -public class OioOioSocketStringEchoTest extends AbstractSocketStringEchoTest { - - @Override - protected ChannelFactory newClientSocketChannelFactory(Executor executor) { - return new OioClientSocketChannelFactory(executor); - } - - @Override - protected ChannelFactory newServerSocketChannelFactory(Executor executor) { - return new OioServerSocketChannelFactory(executor, executor); - } - -}