Search in sources :

Example 6 with BookInfo

use of org.apache.cxf.systest.jaxrs.BookStore.BookInfo in project cxf by apache.

the class JAXRSClientServerBookTest method testGetBookAdapterInfoList.

@Test
public void testGetBookAdapterInfoList() throws Exception {
    BookStore store = JAXRSClientFactory.create("http://localhost:" + PORT, BookStore.class);
    List<? extends BookInfo> list = store.getBookAdapterList();
    assertEquals(1, list.size());
    BookInfo info = list.get(0);
    assertEquals(123L, info.getId());
}
Also used : BookInfo(org.apache.cxf.systest.jaxrs.BookStore.BookInfo) Test(org.junit.Test)

Aggregations

BookInfo (org.apache.cxf.systest.jaxrs.BookStore.BookInfo)6 Test (org.junit.Test)6 Client (javax.ws.rs.client.Client)4 WebClient (org.apache.cxf.jaxrs.client.WebClient)4 WebTarget (javax.ws.rs.client.WebTarget)2