Revision c81d69db
#3868 Add nothovar. test
cdmlib-model/src/test/java/eu/etaxonomy/cdm/strategy/parser/NonViralNameParserImplTest.java | ||
---|---|---|
549 | 549 |
assertFalse("Name must not be protected", name1.isProtectedTitleCache()); |
550 | 550 |
assertEquals(nameStr, name1.getTitleCache()); //we expect the cache strategy to create the same result |
551 | 551 |
|
552 |
//nothovar. |
|
553 |
nameStr = "Dactylorhiza incarnata nothovar. versicolor"; |
|
554 |
name1 = parser.parseFullName(nameStr); |
|
555 |
assertFalse("Name must not have monom hybrid bit set", name1.isMonomHybrid()); |
|
556 |
assertFalse("Name must have binom hybrid bit set", name1.isBinomHybrid()); |
|
557 |
assertTrue("Name must have trinom hybrid bit set", name1.isTrinomHybrid()); |
|
558 |
assertFalse("Name must not be protected", name1.isProtectedTitleCache()); |
|
559 |
assertEquals(nameStr, name1.getNameCache()); //we expect the cache strategy to create the same result |
|
560 |
|
|
552 | 561 |
} |
553 | 562 |
|
554 | 563 |
/** |
Also available in: Unified diff