use of com.linkedin.restli.server.twitter.RepliesCollectionResource in project rest.li by linkedin.
the class TestRestLiMethodInvocation method testCustomTypeParametersCustomLongWithDefault.
@Test(dataProvider = TestConstants.RESTLI_PROTOCOL_1_2_PREFIX + "customLongDefault")
public void testCustomTypeParametersCustomLongWithDefault(ProtocolVersion version, String uri) throws Exception {
ResourceModel repliesResourceModel = buildResourceModel(RepliesCollectionResource.class);
ResourceMethodDescriptor methodDescriptor = repliesResourceModel.findFinderMethod("customLongDefault");
RepliesCollectionResource repliesResource = getMockResource(RepliesCollectionResource.class);
repliesResource.customLongDefault(new CustomLong(100L), new CustomLong(1235L));
EasyMock.expectLastCall().andReturn(null).once();
checkInvocation(repliesResource, methodDescriptor, "GET", version, uri);
}
use of com.linkedin.restli.server.twitter.RepliesCollectionResource in project rest.li by linkedin.
the class TestRestLiMethodInvocation method testCustomTypeParametersCustomString.
@Test(dataProvider = TestConstants.RESTLI_PROTOCOL_1_2_PREFIX + "customStringParam")
public void testCustomTypeParametersCustomString(ProtocolVersion version, String uri) throws Exception {
ResourceModel repliesResourceModel = buildResourceModel(RepliesCollectionResource.class);
ResourceMethodDescriptor methodDescriptor = repliesResourceModel.findFinderMethod("customString");
RepliesCollectionResource repliesResource = getMockResource(RepliesCollectionResource.class);
repliesResource.customString(new CustomString("foo"));
EasyMock.expectLastCall().andReturn(null).once();
checkInvocation(repliesResource, methodDescriptor, "GET", version, uri);
}
Aggregations