Examples of LibraryStub


Examples of org.apache.axis2.jibx.library.unwrapped.client.LibraryStub

        UtilServer.stop();
    }
   
    @Test
    public void test1() throws Exception {
        LibraryStub stub = new LibraryStub(UtilServer.getConfigurationContext(), "http://127.0.0.1:" + UtilServer.TESTING_PORT + "/axis2/services/library");
       
        stub.addBook("Paperback", "0618918248", new String[] { "Richard Dawkins" }, "The God Delusion");
       
        Book book = stub.getBook("0618918248");
        assertNotNull(book);
        assertEquals("Paperback", book.getType());
        assertEquals("0618918248", book.getIsbn());
        assertEquals("The God Delusion", book.getTitle());
        String[] authors = book.getAuthors();
        assertEquals(1, authors.length);
        assertEquals("Richard Dawkins", authors[0]);
       
        Book[] books = stub.getBooksByType("Paperback");
        assertEquals(1, books.length);
        assertEquals("0618918248", books[0].getIsbn());
    }
View Full Code Here

Examples of org.apache.axis2.jibx.library.unwrapped.client.LibraryStub

        assertEquals("0618918248", books[0].getIsbn());
    }
   
    @Test
    public void test2() throws Exception {
        LibraryStub stub = new LibraryStub(UtilServer.getConfigurationContext(), "http://127.0.0.1:" + UtilServer.TESTING_PORT + "/axis2/services/library");
       
        stub.addBookInstance(new Book("Hardcover", "8854401765", "The Voyage of the Beagle", new String[] { "Charles Darwin" }));
        Book book = stub.getBook("8854401765");
        assertNotNull(book);
        assertEquals("Hardcover", book.getType());
        assertEquals("8854401765", book.getIsbn());
        assertEquals("The Voyage of the Beagle", book.getTitle());
        String[] authors = book.getAuthors();
View Full Code Here

Examples of org.apache.axis2.jibx.library.wrapped.client.LibraryStub

        UtilServer.stop();
    }
   
    @Test
    public void test() throws Exception {
        LibraryStub stub = new LibraryStub(UtilServer.getConfigurationContext(), "http://127.0.0.1:" + UtilServer.TESTING_PORT + "/axis2/services/library");
       
        stub.addBook(new AddBookRequest(new Book("Paperback", "0618918248", "The God Delusion", new String[] { "Richard Dawkins" })));
    }
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.