Search in sources :

Example 1 with TcpServer

use of io.servicecomb.foundation.vertx.server.TcpServer in project java-chassis by ServiceComb.

the class TestTcp method testTcpServerStarter.

@Test
public void testTcpServerStarter() {
    URIEndpointObject endpiont = new URIEndpointObject("highway://127.0.0.1:9900");
    TcpServer oStarter = new TcpServer(endpiont);
    oStarter.init(Vertx.vertx(), "", null);
    Assert.assertNotNull(oStarter);
//TODO Need to find a way to Assert TcpServerStarter as this obbject does not return any values.
}
Also used : URIEndpointObject(io.servicecomb.foundation.common.net.URIEndpointObject) TcpServer(io.servicecomb.foundation.vertx.server.TcpServer) Test(org.junit.Test)

Aggregations

URIEndpointObject (io.servicecomb.foundation.common.net.URIEndpointObject)1 TcpServer (io.servicecomb.foundation.vertx.server.TcpServer)1 Test (org.junit.Test)1