Project

General

Profile

Revision 5ef16029

ID5ef16029e8ea28034d908f93c1555583e24fda24
Parent f995ae78
Child 03c8f07b

Added by Patrick Plitzner over 2 years ago

ref #6032 Remove test for rank as mentioned in ticket

View differences:

cdmlib-model/src/test/java/eu/etaxonomy/cdm/strategy/parser/NonViralNameParserImplTest.java
670 670
        assertEquals("Title cache must be correct", "Abies alba \u00D7 Pinus bus var. beta", name1.getTitleCache());
671 671
        assertEquals("Hybrid name must have the lower rank ('variety') as rank", Rank.VARIETY(), name1.getRank());
672 672

  
673
        //Defined rank for infraspecific taxa #6032
674
        name1 = parser.parseFullName("Berberis wilsoniae aggregata", botanicCode, Rank.VARIETY());
675
        Rank rank = name1.getRank();
676
        System.out.println(name1.getTitleCache());
677
        System.out.println(rank.getTitleCache());
678

  
679
//        name1 = parser.parseFullName("Berberis aggregata aggregata × Berberis wilsoniae aggregata", botanicCode, Rank.VARIETY());
680
//        assertTrue("Name must have hybrid formula bit set", name1.isHybridFormula());
681
//        assertEquals("Name must have 2 hybrid parents", 2, name1.getHybridChildRelations().size());
682
//        assertEquals("Title cache must be correct", name1, name1.getTitleCache());
683
//        assertEquals("Hybrid name must have the defined rank ('variety') as rank", Rank.VARIETY(), name1.getRank());
684

  
685 673
        //hybrids with authors
686 674
        name1 = parser.parseFullName("Abies alba L. \u00D7 Pinus bus Mill.", botanicCode, null);
687 675
        assertTrue("Name must have hybrid formula bit set", name1.isHybridFormula());

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)