Package org.books.domain

Examples of org.books.domain.Book


    }

    @Given("^my shopping cart contains ([\\d]+) book with price (.+)$")
    public void cartContainsBook(int count, double price) throws Exception {
        for (int i = 0; i < count; i++) {
            Book book = new Book();
            book.setPrice(price);
            bookDao.addBook(book); // book must be persisted in order to persist the order later

            cartManager.AddBook(book, 1);
        }
    }
View Full Code Here


        super(initializer);
    }

    @When("^I put a book with price (.+) into my shopping cart$")
    public void iPutABookIntoMyShoppingCart(double price) {
        Book book = new Book();
        book.setPrice(price);
        cartManager.AddBook(book, 1);
    }
View Full Code Here

    }

    @Given("^the following books$")
    public void theFollowingBooksWithTable(cuke4duke.Table table) throws Exception {
        for (List<String> row : table.rows()) {
            bookDao.addBook(new Book(row.get(0), row.get(1), Integer.parseInt((row.get(2))), row.get(3)));
        }
    }
View Full Code Here

TOP

Related Classes of org.books.domain.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.