Project

General

Profile

Revision c81d69db

IDc81d69db5f1b642db372db811e7bf682c1f46ed9
Parent 3a8df162
Child 9b14d59d

Added by Andreas Müller over 3 years ago

#3868 Add nothovar. test

View differences:

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

Add picture from clipboard (Maximum size: 40 MB)