Search in sources :

Example 6 with Model

use of com.weibo.api.motan.protocol.example.Model in project motan by weibocom.

the class DefaultRpcCodecTest method testObjectArrayRequest.

@Test
public void testObjectArrayRequest() throws Exception {
    DefaultRequest request = getRequest("com.weibo.api.motan.protocol.example.Model[]", new Object[] { new Model[] { new Model("hello", 11, Model.class), new Model("world", 12, Model.class) } });
    testCodecRequest(request);
}
Also used : DefaultRequest(com.weibo.api.motan.rpc.DefaultRequest) Model(com.weibo.api.motan.protocol.example.Model) Test(org.junit.Test)

Aggregations

Model (com.weibo.api.motan.protocol.example.Model)6 Test (org.junit.Test)6 DefaultRequest (com.weibo.api.motan.rpc.DefaultRequest)5 DefaultResponse (com.weibo.api.motan.rpc.DefaultResponse)1