Package assignment4

Examples of assignment4.Book


   */
  public void testBookmarkableLink() throws Exception
  {
    // for WebPage without default constructor, I define a TestPageSource to
    // let the page be instatiated lately.
    Book mockBook = new Book("xxId", "xxName");
    tester.startPage(new ViewBook(mockBook));

    // assertion
    tester.assertRenderedPage(ViewBook.class);
    tester.clickLink("link");
View Full Code Here


  /**
   * @throws Exception
   */
  public void testPageConstructor() throws Exception
  {
    Book mockBook = new Book("xxId", "xxName");
    Page page = new ViewBook(mockBook);
    tester.startPage(page);

    // assertion
    tester.assertRenderedPage(ViewBook.class);
View Full Code Here

    {
      private static final long serialVersionUID = 1L;

      public Page getTestPage()
      {
        Book mockBook = new Book("xxId", "xxName");
        return new ViewBook(mockBook);
      }
    });

    // assertion
View Full Code Here

    {
      private static final long serialVersionUID = 1L;

      public Page getTestPage()
      {
        Book mockBook = new Book("xxId", "xxName");
        return new ViewBook(mockBook);
      }
    });

    // assertion
View Full Code Here

  /**
   * @throws Exception
   */
  public void testPageConstructor() throws Exception
  {
    Book mockBook = new Book("xxId", "xxName");
    Page page = new ViewBook(mockBook);
    tester.startPage(page);

    // assertion
    tester.assertRenderedPage(ViewBook.class);
View Full Code Here

    {
      private static final long serialVersionUID = 1L;

      public Page getTestPage()
      {
        Book mockBook = new Book("xxId", "xxName");
        return new ViewBook(mockBook);
      }
    });

    // assertion
View Full Code Here

    {
      private static final long serialVersionUID = 1L;

      public Page getTestPage()
      {
        Book mockBook = new Book("xxId", "xxName");
        return new ViewBook(mockBook);
      }
    });

    // assertion
View Full Code Here

  /**
   * @throws Exception
   */
  public void testPageConstructor() throws Exception
  {
    Book mockBook = new Book("xxId", "xxName");
    Page page = new ViewBook(mockBook);
    tester.startPage(page);

    // assertion
    tester.assertRenderedPage(ViewBook.class);
View Full Code Here

   * @throws Exception
   */
  @Test
  public void viewBook() throws Exception
  {
    Book mockBook = new Book("xxId", "xxName");
    Page page = new ViewBook(mockBook);
    tester.startPage(page);

    // assertion
    tester.assertRenderedPage(ViewBook.class);
View Full Code Here

  @Test
  public void bookmarkableLink() throws Exception
  {
    // for WebPage without default constructor, I define a TestPageSource to
    // let the page be instatiated lately.
    Book mockBook = new Book("xxId", "xxName");
    tester.startPage(new ViewBook(mockBook));

    // assertion
    tester.assertRenderedPage(ViewBook.class);
    tester.clickLink("link");
View Full Code Here

TOP

Related Classes of assignment4.Book

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.