Search in sources :

Example 1 with ConfigPublishResponse

use of com.alibaba.nacos.api.config.remote.response.ConfigPublishResponse in project nacos by alibaba.

the class ConfigPublishRequestHandlerTest method testHandle.

@Test
public void testHandle() throws NacosException {
    ConfigPublishRequest configPublishRequest = new ConfigPublishRequest();
    configPublishRequest.setDataId("dataId");
    configPublishRequest.setGroup("group");
    configPublishRequest.setContent("content");
    RequestMeta requestMeta = new RequestMeta();
    requestMeta.setClientIp("127.0.0.1");
    ConfigPublishResponse response = configPublishRequestHandler.handle(configPublishRequest, requestMeta);
    Assert.assertEquals(ResponseCode.SUCCESS.getCode(), response.getResultCode());
}
Also used : ConfigPublishRequest(com.alibaba.nacos.api.config.remote.request.ConfigPublishRequest) ConfigPublishResponse(com.alibaba.nacos.api.config.remote.response.ConfigPublishResponse) RequestMeta(com.alibaba.nacos.api.remote.request.RequestMeta) Test(org.junit.Test)

Aggregations

ConfigPublishRequest (com.alibaba.nacos.api.config.remote.request.ConfigPublishRequest)1 ConfigPublishResponse (com.alibaba.nacos.api.config.remote.response.ConfigPublishResponse)1 RequestMeta (com.alibaba.nacos.api.remote.request.RequestMeta)1 Test (org.junit.Test)1