package com.twu.biblioteca.helper;

/**
 * Created by zhihuizhang on 7/18/15.
 */
public class Libraryhelper {
}

@@ -33,81 +33,1137 @@
 r;%0A%0A
-/**%0A * Created by zhihuizhang on 7/18/15.%0A */%0Apublic class Libraryhelper %7B
+import com.twu.biblioteca.entity.Book;%0Aimport com.twu.biblioteca.entity.Library;%0Aimport com.twu.biblioteca.entity.User;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A%0Apublic class Libraryhelper %7B%0A%0A    public Library initLibrary() %7B%0A        List%3CBook%3E books = new ArrayList%3CBook%3E();%0A        books.add(new Book(%22Refactoring: Improving the Design of Existing Code%22, %22Martin Fowler%22, %22July 8, 1999%22));%0A        books.add(new Book(%22Head First Design Patterns%22, %22Eric Freeman%22, %22November 4, 2004%22));%0A        books.add(new Book(%22Clean Code%22, %22Robert C. Martin %22, %22August 11, 2008%22));%0A        books.add(new Book(%22Programming in Scala%22, %22Martin Odersky%22, %22January 4, 2011%22));%0A        books.add(new Book(%22Head First Java%22, %22Kathy Sierra%22, %22February 9, 2005%22));%0A        books.add(new Book(%22JavaScript: The Good Parts%22, %22Douglas Crockford%22, %22May, 2008%22));%0A%0A        List%3CUser%3E users = new ArrayList%3CUser%3E();%0A        users.add(new User(%22zhzhang%22, %221111%22, %22customer%22));%0A        users.add(new User(%22yanzi%22, %221111%22, %22librarian%22));%0A        users.add(new User(%22xueqian%22, %221111%22, %22librarian%22));%0A%0A        return new Library(books, users);%0A    %7D%0A
 %0A%7D%0A

test initLibraryTest class