Revision 1ffd1c27
Added by Andreas Müller over 3 years ago
cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/TaxonServiceImplTest.java | ||
---|---|---|
1175 | 1175 |
Assert.assertNotNull("Child taxon should exist", child1); |
1176 | 1176 |
TaxonDeletionConfigurator config = new TaxonDeletionConfigurator(); |
1177 | 1177 |
config.setDeleteTaxonNodes(false); |
1178 |
config.setDeleteMisappliedNamesAndInvalidDesignations(false);
|
|
1178 |
config.setDeleteMisappliedNames(false); |
|
1179 | 1179 |
//try { |
1180 | 1180 |
//commitAndStartNewTransaction(tableNames); |
1181 | 1181 |
|
... | ... | |
1713 | 1713 |
UUID misappliedNameUUID = service.save(misappliedName).getUuid(); |
1714 | 1714 |
|
1715 | 1715 |
TaxonDeletionConfigurator config = new TaxonDeletionConfigurator() ; |
1716 |
config.setDeleteMisappliedNamesAndInvalidDesignations(true);
|
|
1716 |
config.setDeleteMisappliedNames(true); |
|
1717 | 1717 |
|
1718 | 1718 |
DeleteResult result = service.deleteTaxon(testTaxon.getUuid(), config, node.getClassification().getUuid()); |
1719 | 1719 |
if(!result.isOk()){ |
... | ... | |
1742 | 1742 |
UUID misappliedNameUUID = service.save(misappliedName).getUuid(); |
1743 | 1743 |
|
1744 | 1744 |
TaxonDeletionConfigurator config = new TaxonDeletionConfigurator() ; |
1745 |
config.setDeleteMisappliedNamesAndInvalidDesignations(false);
|
|
1745 |
config.setDeleteMisappliedNames(false); |
|
1746 | 1746 |
|
1747 | 1747 |
DeleteResult result = service.deleteTaxon(testTaxon.getUuid(), config, node.getClassification().getUuid()); |
1748 | 1748 |
if(!result.isOk()){ |
Also available in: Unified diff
ref #9322 remove invalid designation relationship from cdmlib