package housing.test;

import housing.House;
import housing.interfaces.Landlord;
import housing.interfaces.Renter;
import housing.roles.LandlordRole;
import housing.test.mock.MockRenter;
import junit.framework.TestCase;
import test.mock.MockPerson;
import base.PersonAgent;
import base.BaseRole;
import base.interfaces.Person;
import base.interfaces.Role;

/**
 * 
 * This class is a JUnit test class to unit test the Landlord's interaction with
 * renters.
 * 
 * @author Maggi Yang
 */

public class LandlordTest extends TestCase {
	// these are instantiated for each test separately via the setUp() method.
	Person landlordPerson;
	Person renterPerson;
	Landlord landlordRole;
	Renter renter;
	House house1;
	House house2; 

	/**
	 * This method is run before each test. You can use it to instantiate the
	 * class variables for your agent and mocks, etc.
	 */

	public void setUp() throws Exception {
		super.setUp();
		
		landlordPerson = new PersonAgent();
		landlordRole = new LandlordRole();
		renterPerson = new MockPerson("RenterPerson");
		renter = new MockRenter("Mockrenter");

		house1 = new House(20, 20, 100.00); 
		house2 = new House(30, 30, 250.00); 

	
	}
	
	public void testNormativeScenario()
	{
		/**
		 * Tests that the landlord can receive and fulfill housing requests from renters
		 */
		
		landlordPerson.addRole((Role) landlordRole);
		renterPerson.addRole((Role) renter); 
		
	}

}

@@ -960,45 +960,8 @@
 ();%0A
-%09%09landlordRole = new LandlordRole();%0A
 %09%09re
@@ -1005,16 +1005,55 @@
 rson%22);%0A
+%09%09landlordRole = new LandlordRole();%0A%09%0A
 %09%09renter
@@ -1400,14 +1400,48 @@
 r); %0A%09%09%0A
+%09%09renter.myLandlord = landlord%0A%09%09%0A
 %09%7D%0A%0A%7D%0A

add to LandlordTest