Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TCPTransportTest.java')
-rw-r--r--plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TCPTransportTest.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TCPTransportTest.java b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TCPTransportTest.java
index 0d34b3c83b..a7f62b3ecf 100644
--- a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TCPTransportTest.java
+++ b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TCPTransportTest.java
@@ -10,6 +10,7 @@
**************************************************************************/
package org.eclipse.net4j.tests;
+import org.eclipse.net4j.Net4jFactory;
import org.eclipse.net4j.transport.Buffer;
import org.eclipse.net4j.transport.BufferProvider;
import org.eclipse.net4j.transport.Channel;
@@ -25,11 +26,9 @@ import org.eclipse.net4j.util.registry.IRegistry;
import org.eclipse.net4j.util.stream.ChannelInputStream;
import org.eclipse.net4j.util.stream.ChannelOutputStream;
-import org.eclipse.internal.net4j.transport.BufferUtil;
import org.eclipse.internal.net4j.transport.tcp.AbstractTCPConnector;
import org.eclipse.internal.net4j.transport.tcp.TCPAcceptorImpl;
import org.eclipse.internal.net4j.transport.tcp.TCPSelectorImpl;
-import org.eclipse.internal.net4j.transport.tcp.TCPUtil;
import java.io.BufferedReader;
import java.io.DataInputStream;
@@ -66,16 +65,16 @@ public class TCPTransportTest extends TestCase
System.out.print(getName());
System.out.println(" =================================");
- bufferPool = BufferUtil.createBufferPool();
+ bufferPool = Net4jFactory.createBufferPool();
LifecycleUtil.activate(bufferPool);
assertTrue(LifecycleUtil.isActive(bufferPool));
- selector = (TCPSelectorImpl)TCPUtil.createTCPSelector();
+ selector = (TCPSelectorImpl)Net4jFactory.createTCPSelector();
selector.activate();
assertTrue(selector.isActive());
- acceptor = (TCPAcceptorImpl)TCPUtil.createTCPAcceptor(bufferPool, selector);
- connector = (AbstractTCPConnector)TCPUtil.createTCPConnector(bufferPool, selector, "localhost");
+ acceptor = (TCPAcceptorImpl)Net4jFactory.createTCPAcceptor(bufferPool, selector);
+ connector = (AbstractTCPConnector)Net4jFactory.createTCPConnector(bufferPool, selector, "localhost");
}
@Override

Back to the top