use of com.alibaba.otter.shared.communication.core.impl.connection.CommunicationConnectionFactory in project otter by alibaba.
the class DubboConnectionTest method testSingle.
@Test
public void testSingle() {
CommunicationConnectionFactory factory = new DubboCommunicationConnectionFactory();
CommunicationParam param = new CommunicationParam();
param.setIp("127.0.0.1");
param.setPort(2088);
CommunicationConnection connection = factory.createConnection(param);
Object result = connection.call(new HeartEvent());
want.object(result).notNull();
}
Aggregations