Examples of BookStore


Examples of org.apache.cxf.systest.jaxrs.security.BookStore

            sigInterceptor.setStyle(XmlSigOutInterceptor.ENVELOPING_SIG);
        }
        bean.getOutInterceptors().add(sigInterceptor);
        bean.setServiceClass(BookStore.class);
       
        BookStore store = bean.create(BookStore.class);
        try {
            Book book = store.addBook(new Book("CXF", 126L));
            assertEquals(126L, book.getId());
        } catch (ServerWebApplicationException ex) {
            fail(ex.getMessage());
        } catch (ClientWebApplicationException ex) {
            if (ex.getCause() != null && ex.getCause().getMessage() != null) {
View Full Code Here

Examples of org.camelcookbook.transformation.myschema.Bookstore

    public void testBookModelToJaxb() throws Exception {
        final MyNormalizer myNormalizer = new MyNormalizer();

        final List<Map<String, Object>> books = createCsvModel();

        final Bookstore result = myNormalizer.bookModelToJaxb(books);

        assertEquals(createJaxbModel(), result);
    }
View Full Code Here

Examples of org.glassfish.jersey.tests.integration.servlet_25_mvc_1.resource.Bookstore

        assertBookstoreHtmlResponse(target().request().get(String.class));
    }

    @Test
    public void testResourceAsXml() throws Exception {
        final Bookstore response = target().request("application/xml").get(Bookstore.class);

        assertNotNull("Should have returned a bookstore!", response);
        assertEquals("bookstore name", "Czech Bookstore", response.getName());
    }
View Full Code Here

Examples of org.glassfish.jersey.tests.integration.servlet_25_mvc_2.resource.Bookstore

public class BookstoreITCase extends TestSupport {

    @Test
    public void testResourceAsXml() throws Exception {
        final Bookstore response = target().request("application/xml").get(Bookstore.class);

        assertBookstoreXmlResponse(response);
    }
View Full Code Here

Examples of org.glassfish.jersey.tests.integration.servlet_25_mvc_3.resource.Bookstore

        assertBookstoreHtmlResponse(target().request().get(String.class));
    }

    @Test
    public void testResourceAsXml() throws Exception {
        final Bookstore response = target().request("application/xml").get(Bookstore.class);

        assertNotNull("Should have returned a bookstore!", response);
        assertEquals("bookstore name", "Czech Bookstore", response.getName());
    }
View Full Code Here

Examples of org.jooq.example.db.h2.tables.BookStore

    @Test
    public void testJoin() throws Exception {
        // All of these tables were generated by jOOQ's Maven plugin
        Book b = BOOK.as("b");
        Author a = AUTHOR.as("a");
        BookStore s = BOOK_STORE.as("s");
        BookToBookStore t = BOOK_TO_BOOK_STORE.as("t");

        Result<Record3<String, String, Integer>> result =
        create.select(a.FIRST_NAME, a.LAST_NAME, countDistinct(s.NAME))
              .from(a)
View Full Code Here

Examples of org.jooq.example.db.h2.tables.BookStore

    @Test
    public void testJoin() throws Exception {
        // All of these tables were generated by jOOQ's Maven plugin
        Book b = BOOK.as("b");
        Author a = AUTHOR.as("a");
        BookStore s = BOOK_STORE.as("s");
        BookToBookStore t = BOOK_TO_BOOK_STORE.as("t");

        Result<Record3<String, String, Integer>> result =
        DSL.using(connection)
              .select(a.FIRST_NAME, a.LAST_NAME, countDistinct(s.NAME))
View Full Code Here

Examples of talend.camel.examples.jaxrsjmshttp.common.BookStore

public class BookStoreClientMain {
   
    public static void main (String[] args) throws Exception {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("client.xml");
        BookStoreClient client = new BookStoreClient();
        BookStore bookStoreJmsClient = context.getBean("bookStoreJmsClient", BookStore.class);
        client.useBookStore(bookStoreJmsClient);
       
        final int defaultHttpPort = 9002;
        String systemHttpPort = System.getProperty("http.port");
        int httpPort = systemHttpPort == null ? 9002 : Integer.valueOf(systemHttpPort);

        
        String address = "http://localhost:" + httpPort + "/bookstore";
        System.out.println("Invoking HTTP service at " + address);
        BookStore bookStoreHttp =
            JAXRSClientFactory.create(address, BookStore.class);
        client.useBookStore(bookStoreHttp);
        context.close();

        // TODO Implement with HTTP over Camel transport using direct component
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.