}
// Create different books
List<Order> orders = new ArrayList<Order>();
{
final Book effectiveJava = new BookBuilder() {
{
title("Effective Java");
isbn("9780321356680");
description("Brings together seventy-eight indispensable programmer's rules of thumb.");
author("Joshua Bloch");
year(2008);
price("31.20");
category(InitialDataSetup.this.category);
}
}.build();
final Book refactoring = new BookBuilder() {
{
title("Refactoring: Improving the Design of Existing Code");
isbn("9780201485677");
description("Refactoring is about improving the design of existing code. It is the process of "
+ "changing a software system in such a way that it does not alter the external beha"
+ "vior of the code, yet improves its internal structure.");
author("Martin Fowler");
year(1999);
price("41.39");
category(InitialDataSetup.this.category);
}
}.build();
final Book cleanCode = new BookBuilder() {
{
title("Clean Code: A Handbook of Agile Software Craftsmanship");
isbn("9780132350884");
description("Even bad code can function. But if code isn't clean, it can bring a development organization "
+ "to its knees. Every year, countless hours and significant resources are lost because of poorly "
+ "written code. But it doesn't have to be that way.");
author("Robert C. Martin");
year(2008);
price("33.32");
category(InitialDataSetup.this.category);
}
}.build();
final Book agileSoftware = new BookBuilder() {
{
title("Agile Software Development, Principles, Patterns, and Practices");
isbn("9780135974445");
description("A unique collection of the latest software development methods. Includes OOD, UML, Design Patterns, Agile and XP methods with a "
+ "detailed description of a complete software design for reusable programs in C++ and Java.");
author("Robert C. Martin");
year(2002);
price("54.61");
category(InitialDataSetup.this.category);
}
}.build();
final Book practicalApiDesign = new BookBuilder() {
{
title("Practical API Design: Confessions of a Java Framework Architect");
isbn("9781430209737");
description("The definitive guide to API design, this book will be required reading for all "
+ "designers and engineers involved with the development, testing, and maintenance of APIs.");