Project

General

Profile

Download (1002 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
 * 
3
 */
4
package eu.etaxonomy.cdm.model.agent;
5

    
6
import java.util.GregorianCalendar;
7

    
8
import junit.framework.Assert;
9

    
10
import org.joda.time.DateMidnight;
11
import org.joda.time.Partial;
12
import org.junit.Before;
13
import org.junit.Test;
14

    
15
import eu.etaxonomy.cdm.model.common.TimePeriod;
16

    
17
/**
18
 * @author a.babadshanjan
19
 *
20
 */
21
public class InstitutionalMembershipTest {
22

    
23
	private InstitutionalMembership mship;
24

    
25
	@Before
26
	public void onSetUp() throws Exception {
27
		
28
		mship = InstitutionalMembership.NewInstance();
29
		
30
		mship.setPerson(new Person("Steve", "Miller", "Mil."));
31
		GregorianCalendar joined = new GregorianCalendar(1967, 4, 23);
32
		GregorianCalendar resigned = new GregorianCalendar(1999, 0, 10);
33
		mship.setPeriod(TimePeriod.NewInstance(joined, resigned));
34
		mship.setInstitute(Institution.NewInstance());
35
		mship.setDepartment("Biodiversity");
36
		mship.setRole("Head");
37
	}
38

    
39
	@Test
40
	public void testMembershipInit() {
41
		Assert.assertNotNull(mship);
42
	}
43
}
    (1-1/1)