use of com.alibaba.nacos.api.config.remote.request.cluster.ConfigChangeClusterSyncRequest in project nacos by alibaba.
the class ConfigChangeClusterSyncRequestHandlerTest method testHandle.
@Test
public void testHandle() throws NacosException {
ConfigChangeClusterSyncRequest configChangeSyncRequest = new ConfigChangeClusterSyncRequest();
configChangeSyncRequest.setRequestId("");
configChangeSyncRequest.setDataId("dataId");
configChangeSyncRequest.setTag("tag");
configChangeSyncRequest.setLastModified(1L);
configChangeSyncRequest.setBeta(false);
RequestMeta meta = new RequestMeta();
meta.setClientIp("1.1.1.1");
ConfigChangeClusterSyncResponse configChangeClusterSyncResponse = configChangeClusterSyncRequestHandler.handle(configChangeSyncRequest, meta);
assertEquals(configChangeClusterSyncResponse.getResultCode(), ResponseCode.SUCCESS.getCode());
}
Aggregations