/**
* @author cmathew
* @date 9 Mar 2015
- *
*/
@DataSet
public class TaxonNavigatorTest extends BaseOperationTest {
Language english = Language.getLanguageFromUuid(Language.uuidEnglish);
-
@Test
public void testChangeAcceptedTaxonToSynonym() throws ExecutionException {
-
UUID oldTaxonNodeNodeUuid = UUID.fromString("b85b5b78-6760-409f-ac91-bb89e95ff2a1");
UUID newAcceptedTaxonNodeUuid = UUID.fromString("6ad8e9e2-f5f6-41ad-aa30-f62a903650db");
UUID targetTaxonUuid = UUID.fromString("b8402dc4-5050-4882-a147-01b71e0e47d6");
Taxon sourceTaxon = CdmBase.deproxy(taxonService.load(sourceTaxonUuid), Taxon.class);
- Set<TaxonDescription> sourceDescriptions = new HashSet(sourceTaxon.getDescriptions());
+ Set<TaxonDescription> sourceDescriptions = new HashSet<>(sourceTaxon.getDescriptions());
sessionOwner.addExpectedUpdatedObject(sourceTaxon);
Taxon targetTaxon = CdmBase.deproxy(taxonService.load(targetTaxonUuid), Taxon.class);
}
Assert.assertTrue(taxonNode.getCountChildren() > 0);
- Set<TaxonNodeDto> nodes = new HashSet();
+ Set<TaxonNodeDto> nodes = new HashSet<>();
nodes.add(new TaxonNodeDto(taxonNode));
TaxonNodeDeletionConfigurator configNodes = new TaxonNodeDeletionConfigurator();
TaxonNode taxonNode2 = taxonNodeService.load(taxonNode2Uuid);
TaxonNode taxonNode3 = taxonNodeService.load(taxonNode3Uuid);
- Set<TaxonNodeDto> nodes = new HashSet();
+ Set<TaxonNodeDto> nodes = new HashSet<>();
nodes.add(new TaxonNodeDto(taxonNode1));
nodes.add(new TaxonNodeDto(taxonNode2));
nodes.add(new TaxonNodeDto(taxonNode3));
}
Assert.assertTrue(taxonNode.getCountChildren() > 0);
- Set<TaxonNodeDto> nodes = new HashSet();
+ Set<TaxonNodeDto> nodes = new HashSet<>();
nodes.add(new TaxonNodeDto(taxonNode));
TaxonNodeDeletionConfigurator configNodes = new TaxonNodeDeletionConfigurator();
UUID classificationUuid = UUID.fromString("0c2b5d25-7b15-4401-8b51-dd4be0ee5cab");
Classification classification = classificationService.load(classificationUuid);
TaxonNode rootNode = classification.getRootNode();
- Set<TaxonNodeDto> nodes = new HashSet();
+ Set<TaxonNodeDto> nodes = new HashSet<>();
nodes.add(new TaxonNodeDto(classification.getRootNode()));
TaxonNodeDeletionConfigurator configNodes = new TaxonNodeDeletionConfigurator();