Revision daf9013d
Added by Katja Luther over 12 years ago
cdmlib-persistence/src/test/java/eu/etaxonomy/cdm/persistence/dao/hibernate/taxon/TaxonDaoHibernateImplTest.java | ||
---|---|---|
976 | 976 |
//assertEquals("Number of synonyms should be 2",2,synonyms.size()); |
977 | 977 |
List<Synonym> inferredSynonyms = taxonDao.createInferredSynonyms(taxon, tree, SynonymRelationshipType.INFERRED_EPITHET_OF()); |
978 | 978 |
assertNotNull("there should be a new synonym ", inferredSynonyms); |
979 |
System.err.println(inferredSynonyms.get(0).getTitleCache()); |
|
979 |
|
|
980 | 980 |
assertEquals ("the name of inferred epithet should be SynGenus lachesis", inferredSynonyms.get(0).getTitleCache(), "SynGenus lachesis sec. ???"); |
981 | 981 |
inferredSynonyms = taxonDao.createInferredSynonyms(taxon, tree, SynonymRelationshipType.INFERRED_GENUS_OF()); |
982 | 982 |
assertNotNull("there should be a new synonym ", inferredSynonyms); |
983 |
System.err.println(inferredSynonyms.get(0).getTitleCache()); |
|
983 |
|
|
984 | 984 |
assertEquals ("the name of inferred epithet should be SynGenus lachesis", inferredSynonyms.get(0).getTitleCache(), "Acherontia ciprosus sec. ???"); |
985 | 985 |
inferredSynonyms = taxonDao.createInferredSynonyms(taxon, tree, SynonymRelationshipType.POTENTIAL_COMBINATION_OF()); |
986 | 986 |
assertNotNull("there should be a new synonym ", inferredSynonyms); |
Also available in: Unified diff