Project

General

Profile

Download (1.15 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2009 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.model.agent;
10

    
11
import java.util.GregorianCalendar;
12

    
13
import org.junit.Assert;
14
import org.junit.Before;
15
import org.junit.Test;
16

    
17
import eu.etaxonomy.cdm.model.common.TimePeriod;
18

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

    
24
	private InstitutionalMembership mship;
25

    
26
	@Before
27
	public void onSetUp() throws Exception {
28

    
29
		mship = InstitutionalMembership.NewInstance();
30

    
31
		mship.setPerson(new Person("Steve", "Miller", "Mil."));
32
		GregorianCalendar joined = new GregorianCalendar(1967, 4, 23);
33
		GregorianCalendar resigned = new GregorianCalendar(1999, 0, 10);
34
		mship.setPeriod(TimePeriod.NewInstance(joined, resigned));
35
		mship.setInstitute(Institution.NewInstance());
36
		mship.setDepartment("Biodiversity");
37
		mship.setRole("Head");
38
	}
39

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