use of com.alibaba.nacos.naming.core.v2.metadata.ServiceMetadata in project nacos by alibaba.
the class PushExecutorRpcImplTest method setUp.
@Before
public void setUp() throws Exception {
serviceMetadata = new ServiceMetadata();
pushData = new PushDataWrapper(serviceMetadata, new ServiceInfo("G@@S"));
pushExecutor = new PushExecutorRpcImpl(pushService);
doAnswer(new CallbackAnswer()).when(pushService).pushWithCallback(eq(rpcClientId), any(NotifySubscriberRequest.class), eq(pushCallBack), eq(GlobalExecutor.getCallbackExecutor()));
}
use of com.alibaba.nacos.naming.core.v2.metadata.ServiceMetadata in project nacos by alibaba.
the class PushExecutorUdpImplTest method setUp.
@Before
public void setUp() throws Exception {
serviceMetadata = new ServiceMetadata();
pushData = new PushDataWrapper(serviceMetadata, new ServiceInfo("G@@S"));
pushExecutor = new PushExecutorUdpImpl(pushService);
doAnswer(new CallbackAnswer()).when(pushService).pushDataWithCallback(eq(subscriber), any(ServiceInfo.class), eq(pushCallBack));
}
Aggregations