Search in sources :

Example 1 with BookSuperClass

use of org.apache.cxf.jaxrs.resources.BookSuperClass in project cxf by apache.

the class JAXRSClientFactoryBeanTest method testBookAndBridgeMethods.

@Test
public void testBookAndBridgeMethods() throws Exception {
    SuperBookStore superBookResource = JAXRSClientFactory.create("http://localhost:9000", SuperBookStore.class);
    assertNotNull(superBookResource);
    Book book = ((BookSuperClass) superBookResource).getNewBook("id4", true);
    assertNotNull(book);
    SuperBook superBook = (SuperBook) superBookResource.getNewBook("id4", true);
    assertNotNull(superBook);
}
Also used : BookSuperClass(org.apache.cxf.jaxrs.resources.BookSuperClass) SuperBook(org.apache.cxf.jaxrs.resources.SuperBook) Book(org.apache.cxf.jaxrs.resources.Book) SuperBookStore(org.apache.cxf.jaxrs.resources.SuperBookStore) SuperBook(org.apache.cxf.jaxrs.resources.SuperBook) Test(org.junit.Test)

Aggregations

Book (org.apache.cxf.jaxrs.resources.Book)1 BookSuperClass (org.apache.cxf.jaxrs.resources.BookSuperClass)1 SuperBook (org.apache.cxf.jaxrs.resources.SuperBook)1 SuperBookStore (org.apache.cxf.jaxrs.resources.SuperBookStore)1 Test (org.junit.Test)1