Package org.easetech.easytest._1

Examples of org.easetech.easytest._1.Entry


                return;
            }
        }

        ListOfBooks result = new ListOfBooks();
        BookType book = new BookType();
        result.getBook().add(book);
        PersonType author = new PersonType();
        book.getAuthor().add(author);
        author.setFirstName("John");
        author.setLastName("Stripycat");
        Calendar dateOfBirth = new GregorianCalendar(202, Calendar.MAY, 17);
        author.setDateOfBirth(dateOfBirth.getTime());
        book.getTitle().add("Hunting basement inhabitants");
        book.getPublisher().add("Dusty Edition");
        book.setYearPublished("2013");

        System.out.println("Book(s) is found:");

        showSeekBookResponse(result);

        ctx.setupCallbackProxy(callbackResponseClient);
        callbackResponseClient.seekBookInBasementResponse(result);

        book.getTitle().set(0, "Hunting more basement inhabitants");
        book.setYearPublished("2014");

        showSeekBookResponse(result);

        ctx.setupCallbackProxy(callbackResponseClient);
        callbackResponseClient.seekBookInBasementResponse(result);
View Full Code Here


                Utils.showSeekBookError(e);

                throw e;
            }
        }
        ListOfBooks result = new ListOfBooks();
        BookType book = new BookType();
        result.getBook().add(book);
        PersonType author = new PersonType();
        book.getAuthor().add(author);
        author.setFirstName("Jack");
        author.setLastName("Icebear");
        Calendar dateOfBirth = new GregorianCalendar(101, Calendar.JANUARY, 2);
View Full Code Here

                }
                return;
            }
        }

        ListOfBooks result = new ListOfBooks();
        BookType book = new BookType();
        result.getBook().add(book);
        PersonType author = new PersonType();
        book.getAuthor().add(author);
        author.setFirstName("John");
        author.setLastName("Stripycat");
        Calendar dateOfBirth = new GregorianCalendar(202, Calendar.MAY, 17);
View Full Code Here

        System.out.println("*** Request-Response operation ********************************");
        System.out.println("***************************************************************");
        System.out.println("\nSending request for authors named Icebear");
        SearchFor request = new SearchFor();
        request.getAuthorLastName().add("Icebear");
        ListOfBooks response = libraryHttp.seekBook(request);
        System.out.println("\nResponse received:");
        Utils.showBooks(response);


        if (response.getBook().size() != 1) {
            System.out.println("An error occured: number of books found is not equal to 1");
        }

        if (!"Icebear".equals(response.getBook().get(0).getAuthor().get(0).getLastName())) {
            System.out.println("An error occured: the author of the found book is not Icebear");
        }
    }
View Full Code Here

        System.out.println("***************************************************************");
        try {
            SearchFor request = new SearchFor();
            System.out.println("\nSending request for authors named Grizzlybear");
            request.getAuthorLastName().add("Grizzlybear");
            ListOfBooks response = libraryHttp.seekBook(request);

            System.out.println("FAIL: We should get a SeekBookError here");

        } catch (SeekBookError e) {
            if (e.getFaultInfo() == null) {
View Full Code Here

    showNewBooks(listDate, book);
  }

  private void showNewBooks(final Date listDate, final List<BookType> response ){
      System.out.println("New books from " + DateFormat.getDateInstance().format(listDate));
      final ListOfBooks books = new ListOfBooks();
      books.getBook().addAll(response);
      Utils.showBooks(books);
    }   
View Full Code Here

        for (int ndx = 1; ndx < 6; ndx++) {
            Thread.sleep(4000L);
            List<BookType> newBooks = new LinkedList<BookType>();
      BookType book = new BookType();
      newBooks.add(book);
      PersonType author = new PersonType();
      book.getAuthor().add(author);
      author.setFirstName("Jack");
      author.setLastName("Icebear");
      Calendar dateOfBirth = new GregorianCalendar(101, Calendar.JANUARY, 2);
      author.setDateOfBirth(dateOfBirth.getTime());
      book.getTitle().add("More About Survival in the Arctic - Volume " + ndx);
      book.getPublisher().add("Frosty Edition");
      book.setYearPublished("2011");
      System.out.println("Publishing notification about a new book:");
      System.out.println("Jack Icebear - More About Survival in the Arctic - Volume " + ndx);
View Full Code Here

            }
        }
        ListOfBooks result = new ListOfBooks();
        BookType book = new BookType();
        result.getBook().add(book);
        PersonType author = new PersonType();
        book.getAuthor().add(author);
        author.setFirstName("Jack");
        author.setLastName("Icebear");
        Calendar dateOfBirth = new GregorianCalendar(101, Calendar.JANUARY, 2);
        author.setDateOfBirth(dateOfBirth.getTime());
        book.getTitle().add("Survival in the Arctic");
        book.getPublisher().add("Frosty Edition");
        book.setYearPublished("2010");

        System.out.println("Book(s) is found:");
View Full Code Here

        }

        ListOfBooks result = new ListOfBooks();
        BookType book = new BookType();
        result.getBook().add(book);
        PersonType author = new PersonType();
        book.getAuthor().add(author);
        author.setFirstName("John");
        author.setLastName("Stripycat");
        Calendar dateOfBirth = new GregorianCalendar(202, Calendar.MAY, 17);
        author.setDateOfBirth(dateOfBirth.getTime());
        book.getTitle().add("Hunting basement inhabitants");
        book.getPublisher().add("Dusty Edition");
        book.setYearPublished("2013");

        System.out.println("Book(s) is found:");
View Full Code Here

        // a list of books
        System.out.println("***************************************************************");
        System.out.println("*** Request-Response operation ********************************");
        System.out.println("***************************************************************");
        System.out.println("\nSending request for authors named Icebear");
        SearchFor request = new SearchFor();
        request.getAuthorLastName().add("Icebear");
        ListOfBooks response = libraryHttp.seekBook(request);
        System.out.println("\nResponse received:");
        Utils.showBooks(response);


View Full Code Here

TOP

Related Classes of org.easetech.easytest._1.Entry

Copyright © 2018 www.massapicom. 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.