Revision f97ff6bc
Added by Andreas Müller over 12 years ago
cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/TaxonServiceImplBusinessTest.java | ||
---|---|---|
145 | 145 |
|
146 | 146 |
HomotypicalGroup homoGroup = newTaxon.getHomotypicGroup(); |
147 | 147 |
Assert.assertEquals("Homotypical group must be the same group as for the old synonym", group, homoGroup); |
148 |
List<Synonym> synonymsInNewTaxonsGroup = homoGroup.getSynonymsInGroup(newTaxon.getSec());
|
|
148 |
List<Synonym> synonymsInNewTaxonsGroup = newTaxon.getSynonymsInGroup(homoGroup);
|
|
149 | 149 |
Assert.assertEquals("New accepted taxons homotypic group should have 2 synonym: s2 and the old synonym (which has not been deleted)", 2, synonymsInNewTaxonsGroup.size()); |
150 | 150 |
Assert.assertTrue("The old synonym's homotypic 'partner' must be a synonym of the new accepted taxon, too.", synonymsInNewTaxonsGroup.contains(s2)); |
151 | 151 |
Assert.assertTrue("The old synonym must be in the new accepted taxons homotypic group as it has not been deleted ", synonymsInNewTaxonsGroup.contains(s2)); |
Also available in: Unified diff
change getSynonymsInGroup to synonymRelationship dependency (not sec dependency anymore).
See #2580