Revision 32c018db
Added by Andreas Müller almost 6 years ago
cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/TaxonServiceImplTest.java | ||
---|---|---|
1409 | 1409 |
assertNotNull(taxonName); |
1410 | 1410 |
TaxonName fromName = TaxonNameFactory.NewBotanicalInstance(Rank.SPECIES()); |
1411 | 1411 |
taxonName.addRelationshipFromName(fromName, NameRelationshipType.VALIDATED_BY_NAME(), null); |
1412 |
nameService.save(fromName); |
|
1412 | 1413 |
|
1413 | 1414 |
TaxonDeletionConfigurator config = new TaxonDeletionConfigurator(); |
1414 | 1415 |
config.setDeleteNameIfPossible(true); |
... | ... | |
1775 | 1776 |
|
1776 | 1777 |
service.saveOrUpdate(c1Species); |
1777 | 1778 |
service.saveOrUpdate(c2Species); |
1779 |
service.save(c4Species); |
|
1778 | 1780 |
|
1779 | 1781 |
//Tests |
1780 | 1782 |
//default starting at species 1 |
... | ... | |
1988 | 1990 |
missName.setSpecificEpithet("lupium"); |
1989 | 1991 |
missName.setCombinationAuthorship(deCandolle); |
1990 | 1992 |
missName.setUuid(SPECIES5_NAME_UUID); |
1991 |
Taxon misappliedName = Taxon.NewInstance(missName, sec); |
|
1992 |
childTaxon2.addMisappliedName(misappliedName, citationRef, "125"); |
|
1993 |
Taxon misappliedNameTaxon = Taxon.NewInstance(missName, sec);
|
|
1994 |
childTaxon2.addMisappliedName(misappliedNameTaxon, citationRef, "125");
|
|
1993 | 1995 |
taxDesc = getTestDescription(descrIndex++); |
1994 | 1996 |
// taxDesc.setUuid(DESCRIPTION2_UUID); |
1995 | 1997 |
genusTaxon.addDescription(taxDesc); |
1996 | 1998 |
service.saveOrUpdate(genusTaxon); |
1999 |
service.save(misappliedNameTaxon); |
|
1997 | 2000 |
|
1998 | 2001 |
return genusTaxon; |
1999 | 2002 |
} |
Also available in: Unified diff
ref #7392 remove cascade from relationships and adapt tests (up to service layer)