* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
-
package eu.etaxonomy.cdm.validation;
import static org.junit.Assert.assertFalse;
import eu.etaxonomy.cdm.model.term.DefaultTermInitializer;
import eu.etaxonomy.cdm.validation.constraint.NameMustFollowCodeValidator;
-
-
/**
* Test class for {@link NameMustFollowCodeValidator}
*
cultivarName = TaxonNameFactory.NewCultivarInstance(Rank.SPECIES());
}
-
/****************** TESTS *****************************/
@Test
assertFalse("There should be a constraint violation as a ViralName must not have hybrid child", constraintViolations.isEmpty());
//TBC
-
}
@Test
Set<ConstraintViolation<TaxonName>> constraintViolations = validator.validate(bacterialName);
assertTrue("There should be no constraint violation as a bacterial name may have subgenus authorship or name approbation set", constraintViolations.isEmpty());
}
-
}