package com.twu.biblioteca;

import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;

public class BibliotecaLibraryTest {

    private BibliotecaLibrary library;

    @Before
    public void setUp() throws Exception {
        library = new BibliotecaLibrary();
    }

    @Test
    public void should_set_book_isCheckOut_to_be_true_when_check_out_success() throws Exception {
        library.checkOutBook("book1");
        assertTrue(library.getBooks().get(0).isCheckOut());
    }

    @Test
    public void should_return_true_when_check_out_success() throws Exception {
        assertTrue(library.checkOutBook("book1"));
    }

    @Test
    public void should_return_false_when_check_out_faild() throws Exception {
        assertFalse(library.checkOutBook("bookName"));
    }
}
@@ -495,32 +495,244 @@
 kOut());%0A    %7D%0A%0A
+    @Test%0A    public void should_check_out_failed_when_book_isCheckOut_is_true() throws Exception %7B%0A        library.getBooks().get(0).setCheckOut(true);%0A        assertFalse(library.checkOutBook(%22book1%22));%0A    %7D%0A%0A
     @Test%0A    pu

add test case for method BibliotecaLibrary.checkOut