* Test method for {@link eu.etaxonomy.cdm.persistence.dao.hibernate.taxon.TaxonDaoHibernateImpl#getTaxaByName(java.lang.String, eu.etaxonomy.cdm.model.reference.Reference)}\r
* restricting the search by a set of Areas.\r
*/\r
- @SuppressWarnings("unchecked")\r
@Test\r
@DataSet(loadStrategy=CleanSweepInsertLoadStrategy.class, value="TaxonDaoHibernateImplTest.testGetTaxaByNameAndArea.xml")\r
public void testGetTaxaByNameAndArea() {\r
\r
}\r
\r
- @Test\r
- @DataSet("TaxonNodeDaoHibernateImplTest.xml")\r
- @Ignore\r
- public void testCreateInferredSynonymy(){\r
- Classification tree = this.classificationDao.findById(1);\r
- Taxon taxon = (Taxon)taxonDao.findByUuid(UUID.fromString("bc09aca6-06fd-4905-b1e7-cbf7cc65d783"));\r
- List <Synonym> synonyms = taxonDao.getAllSynonyms(null, null);\r
- assertEquals("Number of synonyms should be 2",2,synonyms.size());\r
-\r
- //synonyms = taxonDao.getAllSynonyms(null, null);\r
- //assertEquals("Number of synonyms should be 2",2,synonyms.size());\r
- List<Synonym> inferredSynonyms = taxonDao.createInferredSynonyms(taxon, tree, SynonymRelationshipType.INFERRED_EPITHET_OF());\r
- assertNotNull("there should be a new synonym ", inferredSynonyms);\r
- System.err.println(inferredSynonyms.get(0).getTitleCache());\r
- assertEquals ("the name of inferred epithet should be SynGenus lachesis", inferredSynonyms.get(0).getTitleCache(), "SynGenus lachesis sec. ???");\r
- inferredSynonyms = taxonDao.createInferredSynonyms(taxon, tree, SynonymRelationshipType.INFERRED_GENUS_OF());\r
- assertNotNull("there should be a new synonym ", inferredSynonyms);\r
- System.err.println(inferredSynonyms.get(0).getTitleCache());\r
- assertEquals ("the name of inferred epithet should be SynGenus lachesis", inferredSynonyms.get(0).getTitleCache(), "Acherontia ciprosus sec. ???");\r
- inferredSynonyms = taxonDao.createInferredSynonyms(taxon, tree, SynonymRelationshipType.POTENTIAL_COMBINATION_OF());\r
- assertNotNull("there should be a new synonym ", inferredSynonyms);\r
- assertEquals ("the name of inferred epithet should be SynGenus lachesis", inferredSynonyms.get(0).getTitleCache(), "SynGenus ciprosus sec. ???");\r
-\r
- //assertTrue("set of synonyms should contain an inferred Synonym ", synonyms.contains(arg0))\r
- }\r
+\r
+// @Test\r
+// public void testDeploy(){\r
+// TaxonBase taxonBase = taxonDao.findByUuid(UUID.fromString("6bfedf25-6dbc-4d5c-9d56-84f9052f3b2a"));\r
+// \r
+// Synonym synonym = taxonBase.deproxy(taxonBase, Synonym.class);\r
+// }\r
\r
\r
\r