Revision e6d7b501
Added by Andreas Müller almost 7 years ago
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/name/NameTypeDesignationTest.java | ||
---|---|---|
1 | 1 |
/** |
2 | 2 |
* Copyright (C) 2007 EDIT |
3 |
* European Distributed Institute of Taxonomy
|
|
3 |
* European Distributed Institute of Taxonomy |
|
4 | 4 |
* http://www.e-taxonomy.eu |
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 | 8 |
*/ |
... | ... | |
43 | 43 |
@Before |
44 | 44 |
public void setUp() { |
45 | 45 |
term1 = new NameTypeDesignation(); |
46 |
term2 = new NameTypeDesignation(new ZoologicalName(), null, null, null, null, true, false, false);
|
|
46 |
term2 = new NameTypeDesignation(TaxonNameFactory.NewZoologicalInstance(null), null, null, null, null, true, false, false);
|
|
47 | 47 |
} |
48 |
|
|
48 |
|
|
49 | 49 |
@Test |
50 | 50 |
public void testNameTypeDesignation() { |
51 | 51 |
assertNotNull(term1); |
52 | 52 |
assertNotNull(term2); |
53 | 53 |
} |
54 |
|
|
54 |
|
|
55 | 55 |
@Test |
56 | 56 |
public void testGetTypeStatus() { |
57 | 57 |
term1.setTypeStatus(NameTypeDesignationStatus.TAUTONYMY()); |
Also available in: Unified diff
ref #6368 remove TaxonNameBase subclasses