Search in sources :

Example 1 with ConfigChangeClusterSyncResponse

use of com.alibaba.nacos.api.config.remote.response.cluster.ConfigChangeClusterSyncResponse 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());
}
Also used : ConfigChangeClusterSyncRequest(com.alibaba.nacos.api.config.remote.request.cluster.ConfigChangeClusterSyncRequest) RequestMeta(com.alibaba.nacos.api.remote.request.RequestMeta) ConfigChangeClusterSyncResponse(com.alibaba.nacos.api.config.remote.response.cluster.ConfigChangeClusterSyncResponse) Test(org.junit.Test)

Aggregations

ConfigChangeClusterSyncRequest (com.alibaba.nacos.api.config.remote.request.cluster.ConfigChangeClusterSyncRequest)1 ConfigChangeClusterSyncResponse (com.alibaba.nacos.api.config.remote.response.cluster.ConfigChangeClusterSyncResponse)1 RequestMeta (com.alibaba.nacos.api.remote.request.RequestMeta)1 Test (org.junit.Test)1