Revision 60617880
Added by Andreas Müller over 3 years ago
cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/TaxonServiceImplBusinessTest.java | ||
---|---|---|
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 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.cdm.api.service; |
11 | 10 |
|
12 | 11 |
import static org.junit.Assert.assertFalse; |
... | ... | |
64 | 63 |
private INonViralName t1n; |
65 | 64 |
private TaxonName s2n; |
66 | 65 |
|
67 |
/** |
|
68 |
* @throws java.lang.Exception |
|
69 |
*/ |
|
70 | 66 |
@Before |
71 | 67 |
public void setUp() throws Exception { |
72 | 68 |
//service = new TaxonServiceImpl(); |
... | ... | |
206 | 202 |
} |
207 | 203 |
|
208 | 204 |
// Assert.assertNull("Synonym should not be used in a name anymore", s1.getName()); |
209 |
|
|
210 |
|
|
211 | 205 |
} |
212 | 206 |
|
213 | 207 |
/** |
... | ... | |
244 | 238 |
//UUID s1UUID = service.update(s1); |
245 | 239 |
newTaxonUUID = service.save(newTaxon).getUuid(); |
246 | 240 |
|
247 |
|
|
248 | 241 |
s2 =(Synonym)service.find(s2.getUuid()); |
249 | 242 |
newTaxon = (Taxon)service.find(newTaxonUUID); |
250 | 243 |
assertNull(s2); |
... | ... | |
253 | 246 |
assertTrue(synonymName.getTaxonBases().contains(newTaxon)); |
254 | 247 |
} |
255 | 248 |
|
256 |
|
|
257 | 249 |
@Test |
258 | 250 |
public void changeHomotypicalGroupOfSynonym(){ |
259 | 251 |
|
Also available in: Unified diff
cleanup