Project

General

Profile

« Previous | Next » 

Revision af8f90fb

Added by Niels Hoffmann over 14 years ago

fixed a bug that occurred when executing operations on taxon nodes on root level

View differences:

cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/taxon/TaxonNodeTest.java
118 118
		//test child properties
119 119
		assertNotNull("Child should not be null", child);
120 120
		assertEquals("Child taxon should be taxon2", taxon2, child.getTaxon());
121
		assertEquals("Parent taxon should be taxon1", taxon1, child.getParent().getTaxon());
121
		assertEquals("Parent taxon should be taxon1", taxon1, ((TaxonNode) child.getParent()).getTaxon());
122 122
		assertEquals("Reference should be ref2", ref2, child.getReference());
123 123
		assertEquals("Microreference should be 'p33'", "p33", child.getMicroReference());
124 124
		assertEquals("Synonym should be syn1", syn1, child.getSynonymToBeUsed());

Also available in: Unified diff