package gov.nih.nci.cabig.caaers.domain.workflow;

import gov.nih.nci.cabig.caaers.domain.PersonRole;
import junit.framework.TestCase;

public class RoleTransitionOwnerTest extends TestCase {
	RoleTransitionOwner ra =  new RoleTransitionOwner();
	protected void setUp() throws Exception {
		super.setUp();
	}

	public void testIsRole() {
		assertTrue(ra.isRole());
	}

	public void testIsUser() {
		assertFalse(ra.isUser());
	}

	public void testGetUserRole() {
		ra.setUserRole(PersonRole.ADVERSE_EVENT_COORDINATOR);
		assertSame(PersonRole.ADVERSE_EVENT_COORDINATOR, ra.getUserRole());
	}

	public void testSetUserRole() {
		ra.setUserRole(PersonRole.ADVERSE_EVENT_COORDINATOR);
		assertSame(PersonRole.ADVERSE_EVENT_COORDINATOR, ra.getUserRole());
	}
}

@@ -747,10 +747,197 @@
 ());%0A%09%7D%0A
+%09%0A%09public void testSetName() %7B%0A%09%09ra.setName(%22joel%22);%0A%09%09assertEquals(%22joel%22, ra.getName());%0A%09%7D%0A%0A%09public void testGetName() %7B%0A%09%09ra.setName(%22joel%22);%0A%09%09assertEquals(%22joel%22, ra.getName());%0A%09%7D%0A
 %7D%0A

test cases improvement