package com.twu.biblioteca;

import org.junit.Test;

import static org.junit.Assert.assertEquals;
/**
 * Created by watsonarw on 16/04/15.
 */
public class LibraryTest {


    @Test
    public void testSingleBookLibrary() {
        Library library = new Library();
        library.addBook("The Hobbit");
        assertEquals("The Hobbit\n",library.getBookList());
    }


    @Test
    public void testMultiBookLibrary() {
        Library library = new Library();
        library.addBook("The Hobbit");
        library.addBook("Catcher in the Rye");
        assertEquals("The Hobbit\nCatcher in the Rye\n",library.getBookList());
    }
}

@@ -286,32 +286,56 @@
 ook(%22The Hobbit%22
+, %22J.R.R. Tolkien%22, 1937
 );%0A        asser
@@ -353,16 +353,39 @@
 e Hobbit
+ - J.R.R. Tolkien, 1937
 %5Cn%22,libr
@@ -540,16 +540,40 @@
  Hobbit%22
+, %22J.R.R. Tolkien%22, 1937
 );%0A     
@@ -611,16 +611,39 @@
 the Rye%22
+, %22J.D. Salinger%22, 1951
 );%0A     
@@ -673,28 +673,73 @@
 bbit
-%5CnCatcher in the Rye
+ - J.R.R. Tolkien, 1937%5CnCatcher in the Rye - J.D. Salinger, 1951
 %5Cn%22,

Update LibraryTest for Author and Year (failing)