use of com.alibaba.otter.shared.communication.core.impl.dubbo.DubboCommunicationConnectionFactory in project otter by alibaba.
the class DubboCommunicationTest method initial.
@BeforeClass
public void initial() {
DubboCommunicationEndpoint endpoint2088 = new DubboCommunicationEndpoint(2088);
endpoint2088.initial();
DubboCommunicationEndpoint endpoint2089 = new DubboCommunicationEndpoint(2089);
endpoint2089.initial();
CommunicationConnectionFactory factory = new DubboCommunicationConnectionFactory();
client = new DefaultCommunicationClientImpl(factory);
client.initial();
}
use of com.alibaba.otter.shared.communication.core.impl.dubbo.DubboCommunicationConnectionFactory 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