package edu.clemson.Anthony.McGlauflin;

import junit.framework.TestCase;

public class BookTest extends TestCase {
	
	public void testBook() {
		Book b1 = new Book("Great Expectations");
		assertEquals("Great Expectations", b1.title);
		assertEquals("unknown author", b1.author);
	}
	
	public void testGetPerson() {
		Book b2 = new Book("Jane Eyre");
		Person p2 = new Person();
		p2.setName("Taylor Swift");
		
		//Method to say book is loaned to this person
		b2.setPerson(p2);
		
		//Get name of person who has book
		String testName = b2.getPerson().getName();
		assertEquals("Taylor Swift", testName);
		
	}
}
