Revision 4dbcb616
Added by Andreas Müller over 3 years ago
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/agent/InstitutionalMembershipTest.java | ||
---|---|---|
5 | 5 |
* |
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 |
*/ |
|
9 |
|
|
8 |
*/ |
|
10 | 9 |
package eu.etaxonomy.cdm.model.agent; |
11 | 10 |
|
12 | 11 |
import java.util.GregorianCalendar; |
13 | 12 |
|
14 | 13 |
import org.junit.Assert; |
15 |
|
|
16 | 14 |
import org.junit.Before; |
17 | 15 |
import org.junit.Test; |
18 | 16 |
|
... | ... | |
20 | 18 |
|
21 | 19 |
/** |
22 | 20 |
* @author a.babadshanjan |
23 |
* |
|
24 | 21 |
*/ |
25 | 22 |
public class InstitutionalMembershipTest { |
26 | 23 |
|
... | ... | |
28 | 25 |
|
29 | 26 |
@Before |
30 | 27 |
public void onSetUp() throws Exception { |
31 |
|
|
28 |
|
|
32 | 29 |
mship = InstitutionalMembership.NewInstance(); |
33 |
|
|
30 |
|
|
34 | 31 |
mship.setPerson(new Person("Steve", "Miller", "Mil.")); |
35 | 32 |
GregorianCalendar joined = new GregorianCalendar(1967, 4, 23); |
36 | 33 |
GregorianCalendar resigned = new GregorianCalendar(1999, 0, 10); |
Also available in: Unified diff
cleanup and use TermTestBase for model tests