use of com.linkedin.restli.examples.greetings.client.GreetingsRequestBuilders in project rest.li by linkedin.
the class TestRootBuilderWrapper method testWrapperMethodNameGeneration.
@Test
public void testWrapperMethodNameGeneration() {
RootBuilderWrapper<Long, Greeting> rootBuilderWrapper1 = new RootBuilderWrapper<>(new GreetingsBuilders());
RootBuilderWrapper<Long, Greeting> rootBuilderWrapper2 = new RootBuilderWrapper<>(new GreetingsRequestBuilders());
rootBuilderWrapper1.findBy("searchWithTones").addQueryParam("tones", Tone.FRIENDLY);
rootBuilderWrapper1.findBy("searchWithTones").setParam("Tones", new Tone[3]);
rootBuilderWrapper1.findBy("SearchWithTones").addQueryParam("Tones", Tone.FRIENDLY);
rootBuilderWrapper1.findBy("SearchWithTones").setParam("tones", new Tone[3]);
rootBuilderWrapper1.action("someAction").setParam("a", 5);
rootBuilderWrapper2.action("someAction").setParam("a", 5);
rootBuilderWrapper1.action("SomeAction").setParam("A", 5);
rootBuilderWrapper2.action("SomeAction").setParam("A", 5);
}
Aggregations